diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-09-25 12:41:41 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-09-25 12:41:41 +0200 |
commit | e84f532b9e97dc2ad53ad96cc9543a178d6f20fd (patch) | |
tree | edcf5bd3290e18597e02cbde77f78b4329d5d95b /gui/static/js/odr-predistortion.js | |
parent | d5afedae5f31a6b4c8052b12af9279e609ac5f20 (diff) | |
download | dabmod-e84f532b9e97dc2ad53ad96cc9543a178d6f20fd.tar.gz dabmod-e84f532b9e97dc2ad53ad96cc9543a178d6f20fd.tar.bz2 dabmod-e84f532b9e97dc2ad53ad96cc9543a178d6f20fd.zip |
gui: add input to RC page, improve predistortion page
Diffstat (limited to 'gui/static/js/odr-predistortion.js')
-rw-r--r-- | gui/static/js/odr-predistortion.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gui/static/js/odr-predistortion.js b/gui/static/js/odr-predistortion.js index c9b5c17..6b09202 100644 --- a/gui/static/js/odr-predistortion.js +++ b/gui/static/js/odr-predistortion.js @@ -21,13 +21,17 @@ $(function(){ $('#capturebutton').click(function() { doApiRequestPOST("/api/trigger_capture", {}, function(data) { - $('#capturelength').val(data.length); + console.log("trigger_capture succeeded: " + JSON.stringify(data)); + $('#capturelength').text(data.length); + $('#tx_median').text(data.tx_median); + $('#rx_median').text(data.rx_median); }); }); $('#dpdstatusbutton').click(function() { doApiRequestGET("/api/dpd_status", function(data) { - $('#dpdstatus').val(data); + console.log("dpd_status succeeded: " + JSON.stringify(data)); + $('#histogram').text(data.histogram); }); }); }); |