diff options
Diffstat (limited to 'gui/static/js')
-rw-r--r-- | gui/static/js/odr-predistortion.js | 12 |
1 files changed, 12 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. $(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)); |