From cfa9461f269e616d6d54658d583b37d215f35a7b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 28 Nov 2018 11:11:22 +0100 Subject: GUI: Add part of calibration routine --- gui/static/js/odr-predistortion.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'gui/static') diff --git a/gui/static/js/odr-predistortion.js b/gui/static/js/odr-predistortion.js index 4e86f1c..01992d7 100644 --- a/gui/static/js/odr-predistortion.js +++ b/gui/static/js/odr-predistortion.js @@ -19,6 +19,18 @@ // along with ODR-DabMod. If not, see . $(function(){ + $('#calibrate').click(function() { + doApiRequestPOST("/api/calibrate", {}, function(data) { + console.log("calibrate succeeded: " + JSON.stringify(data)); + + setTimeout(function() { + doApiRequestGET("/api/calibrate", function(data) { + $('#calibrationresults').text(data); + }); + }, 2000); + }); + }); + $('#capturebutton').click(function() { doApiRequestPOST("/api/trigger_capture", {}, function(data) { console.log("trigger_capture succeeded: " + JSON.stringify(data)); -- cgit v1.2.3