aboutsummaryrefslogtreecommitdiffstats
path: root/python/gui/static/js/odr-predistortion.js
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-19 17:13:40 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-19 17:13:40 +0100
commitaa3abebd804129f2eff361a1b4f21d0c04c61cfd (patch)
treee88a4a8e07f46be38fe8289c68eb19ac3f234d92 /python/gui/static/js/odr-predistortion.js
parent49620ea6940543a875e0499a1554b33ffb85fa85 (diff)
downloaddabmod-aa3abebd804129f2eff361a1b4f21d0c04c61cfd.tar.gz
dabmod-aa3abebd804129f2eff361a1b4f21d0c04c61cfd.tar.bz2
dabmod-aa3abebd804129f2eff361a1b4f21d0c04c61cfd.zip
GUI: Add adapt step to DPD
Diffstat (limited to 'python/gui/static/js/odr-predistortion.js')
-rw-r--r--python/gui/static/js/odr-predistortion.js18
1 files changed, 13 insertions, 5 deletions
diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js
index f46219c..b5f29ea 100644
--- a/python/gui/static/js/odr-predistortion.js
+++ b/python/gui/static/js/odr-predistortion.js
@@ -67,17 +67,25 @@ $(function(){
});
});
+ $('#triggerbtn').click(function() {
+ doApiRequestPOST("/api/dpd_trigger_run", {}, function(data) {
+ console.log("run succeeded: " + JSON.stringify(data));
+ });
+ });
+
+ $('#adaptbtn').click(function() {
+ doApiRequestPOST("/api/dpd_adapt", {}, function(data) {
+ console.log("adapt succeeded: " + JSON.stringify(data));
+ });
+ });
+
+
$('#resetbtn').click(function() {
doApiRequestPOST("/api/dpd_reset", {}, function(data) {
console.log("reset succeeded: " + JSON.stringify(data));
});
});
- $('#triggerbtn').click(function() {
- doApiRequestPOST("/api/dpd_trigger_run", {}, function(data) {
- console.log("run succeeded: " + JSON.stringify(data));
- });
- });
});
/*