summaryrefslogtreecommitdiffstats
path: root/python/gui/static/js/odr-predistortion.js
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-05 11:19:07 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-05 11:19:07 +0100
commit31b65e41043900c0cadd80961f4b22cdfc171e7d (patch)
treecdeceac026a2d1e0fe8c00af5d0f867767d17ef4 /python/gui/static/js/odr-predistortion.js
parent5cf52c74e9eb6bf8a82af4509ff3eb5106f928f9 (diff)
downloaddabmod-31b65e41043900c0cadd80961f4b22cdfc171e7d.tar.gz
dabmod-31b65e41043900c0cadd80961f4b22cdfc171e7d.tar.bz2
dabmod-31b65e41043900c0cadd80961f4b22cdfc171e7d.zip
Get GUI to communicate with DPDCE
Diffstat (limited to 'python/gui/static/js/odr-predistortion.js')
-rw-r--r--python/gui/static/js/odr-predistortion.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js
index 7a93b2b..b2f1d22 100644
--- a/python/gui/static/js/odr-predistortion.js
+++ b/python/gui/static/js/odr-predistortion.js
@@ -18,6 +18,21 @@
// You should have received a copy of the GNU General Public License
// along with ODR-DabMod. If not, see <http://www.gnu.org/licenses/>.
+function resultrefresh() {
+ var jqxhr = doApiRequestGET("/api/dpd_results", function(data) {
+ $('#dpdresults').text(data['summary']);
+ });
+
+ jqxhr.always(function() {
+ setTimeout(resultrefresh, 2000);
+ });
+}
+
+$(function(){
+ setTimeout(resultrefresh, 2000);
+});
+
+/*
function calibraterefresh() {
doApiRequestGET("/api/calibrate", function(data) {
var text = "Captured TX signal and feedback." +
@@ -92,6 +107,8 @@ $(function(){
});
});
+*/
+
// ToolTip init
$(function(){