diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-06 09:10:42 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-08-06 09:10:42 +0200 |
commit | 7e91c6a59858325593093c046c213c6bd4e7e4f3 (patch) | |
tree | 0a5765a048fd3910caf2fc396d113ef2ef5ea753 /gui/static/js/odr-modulator.js | |
parent | 08705c0399240f984cf54294a369cb3a896e089a (diff) | |
download | dabmod-7e91c6a59858325593093c046c213c6bd4e7e4f3.tar.gz dabmod-7e91c6a59858325593093c046c213c6bd4e7e4f3.tar.bz2 dabmod-7e91c6a59858325593093c046c213c6bd4e7e4f3.zip |
Some GUI changes
Diffstat (limited to 'gui/static/js/odr-modulator.js')
-rw-r--r-- | gui/static/js/odr-modulator.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gui/static/js/odr-modulator.js b/gui/static/js/odr-modulator.js index 9671fb3..273d9f7 100644 --- a/gui/static/js/odr-modulator.js +++ b/gui/static/js/odr-modulator.js @@ -64,6 +64,7 @@ function getRc(callback) { function requestAllParams(callback) { getRc(function(data) { $('#windowlength').val(data.guardinterval.windowlen.value); + $('#digitalgain').val(data.gain.digital.value); $('#cfrenable').prop("checked", data.ofdm.cfr.value == 1); $('#cfrclip').val(data.ofdm.clip.value); $('#cfrerrorclip').val(data.ofdm.errorclip.value); @@ -84,6 +85,11 @@ var updateTimer = setInterval(requestStats, 2000); $(function(){ requestAllParams(); + $('#setdigitalgain').click(function() { + set_rc("gain", "digital", $('#digitalgain').val(), + requestAllParams); + }); + $('#setwindowlength').click(function() { set_rc("guardinterval", "windowlen", $('#windowlength').val(), requestAllParams); |