From f8fbf69e6e41da4fa6a5bfd8b51244f32191a3a1 Mon Sep 17 00:00:00 2001 From: Ivan Efimov Date: Tue, 25 Jan 2022 03:16:16 -0600 Subject: [PATCH] Motor reorder and direction dialogs: hardcode throttle value to 6% for spinning --- src/js/tabs/motors.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/js/tabs/motors.js b/src/js/tabs/motors.js index 66b1bd1d..3b0202d1 100644 --- a/src/js/tabs/motors.js +++ b/src/js/tabs/motors.js @@ -1148,10 +1148,11 @@ TABS.motors.initialize = function (callback) { function setup_motor_output_reordering_dialog(callbackFunction, zeroThrottleValue) { const domDialogMotorOutputReorder = $('#dialogMotorOutputReorder'); + const idleThrottleValue = zeroThrottleValue + 60; const motorOutputReorderComponent = new MotorOutputReorderComponent($('#dialogMotorOutputReorderContent'), callbackFunction, mixerList[FC.MIXER_CONFIG.mixer - 1].name, - zeroThrottleValue, zeroThrottleValue + 200); + zeroThrottleValue, idleThrottleValue); $('#dialogMotorOutputReorder-closebtn').click(closeDialogMotorOutputReorder); @@ -1180,7 +1181,7 @@ TABS.motors.initialize = function (callback) { { const domEscDshotDirectionDialog = $('#escDshotDirectionDialog'); - const idleThrottleValue = zeroThrottleValue + FC.PID_ADVANCED_CONFIG.digitalIdlePercent * 1000 / 100; + const idleThrottleValue = zeroThrottleValue + 60; const motorConfig = { numberOfMotors: self.numberOfValidOutputs,