diff --git a/js/gui.js b/js/gui.js index f01cfef0..f5898843 100644 --- a/js/gui.js +++ b/js/gui.js @@ -218,8 +218,8 @@ GUI_control.prototype.tab_switch_cleanup = function(callback) { var buffer_out = []; for (var i = 0; i < 8; i++) { - buffer_out.push(lowByte(MISC.minthrottle)); - buffer_out.push(highByte(MISC.minthrottle)); + buffer_out.push(lowByte(MISC.mincommand)); + buffer_out.push(highByte(MISC.mincommand)); } send_message(MSP_codes.MSP_SET_MOTOR, buffer_out, false, function() { diff --git a/tabs/motor_outputs.css b/tabs/motor_outputs.css index 2d171703..8a8789f5 100644 --- a/tabs/motor_outputs.css +++ b/tabs/motor_outputs.css @@ -69,17 +69,6 @@ border: 1px dotted silver; } - .tab-motor_outputs .motor_testing .notice input[type="number"] { - margin: 0 10px 0 5px; - width: 45px; - height: 20px; - - padding: 0 5px 0 5px; - - line-height: 20px; - - border: 1px solid silver; - } .tab-motor_outputs .motor_testing .notice input[type="checkbox"] { margin-left: 5px; diff --git a/tabs/motor_outputs.html b/tabs/motor_outputs.html index c7c5e4a3..f81e622e 100644 --- a/tabs/motor_outputs.html +++ b/tabs/motor_outputs.html @@ -81,9 +81,7 @@ In order to prevent injury remove ALL propellers before using this feature.
If you understand these instructions check the box below to enable motor test.

- Min: - Max: - Check: +
diff --git a/tabs/motor_outputs.js b/tabs/motor_outputs.js index b2909cbd..6efea66a 100644 --- a/tabs/motor_outputs.js +++ b/tabs/motor_outputs.js @@ -9,14 +9,14 @@ function tab_initialize_motor_outputs() { $('div.motor_testing').show(); } - $('input.min').val(MISC.minthrottle); + $('input.min').val(MISC.mincommand); $('input.max').val(MISC.maxthrottle); - $('div.sliders input').prop('min', MISC.minthrottle); + $('div.sliders input').prop('min', MISC.mincommand); $('div.sliders input').prop('max', MISC.maxthrottle); - $('div.sliders input').val(MISC.minthrottle); - $('div.values li:not(:last)').html(MISC.minthrottle); + $('div.sliders input').val(MISC.mincommand); + $('div.values li:not(:last)').html(MISC.mincommand); // UI hooks $('div.sliders input:not(.master)').change(function() { @@ -60,18 +60,6 @@ function tab_initialize_motor_outputs() { } }); - $('div.notice input[type="number"]').change(function() { - var min = parseInt($('div.notice .min').val()); - var max = parseInt($('div.notice .max').val()); - - - $('div.sliders input').prop('min', min); - $('div.sliders input').prop('max', max); - - // trigger change event so values are sent to mcu - $('div.sliders input').change(); - }); - // enable Motor data pulling GUI.interval_add('motor_poll', function() { // Request New data