Skip to content

Commit

Permalink
Fix motor reorder and direction dialogs: use IdleOffset value (betafl…
Browse files Browse the repository at this point in the history
…ight#4181)

Motor reorder and direction dialogs: use idleOffset value
  • Loading branch information
haslinghuis authored and demvlad committed Nov 14, 2024
1 parent 93498e4 commit 5227feb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/js/tabs/motors.js
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,7 @@ motors.initialize = async function (callback) {
function setup_motor_output_reordering_dialog(callbackFunction, zeroThrottleValue)
{
const domDialogMotorOutputReorder = $('#dialogMotorOutputReorder');
const idleThrottleValue = zeroThrottleValue + 60;

const idleThrottleValue = zeroThrottleValue + FC.PID_ADVANCED_CONFIG.digitalIdlePercent * 1000 / 100;
const motorOutputReorderComponent = new MotorOutputReorderComponent($('#dialogMotorOutputReorderContent'),
callbackFunction, mixerList[FC.MIXER_CONFIG.mixer - 1].name,
zeroThrottleValue, idleThrottleValue);
Expand Down Expand Up @@ -1248,9 +1247,7 @@ motors.initialize = async function (callback) {
function SetupdescDshotDirectionDialog(callbackFunction, zeroThrottleValue)
{
const domEscDshotDirectionDialog = $('#escDshotDirectionDialog');

const idleThrottleValue = zeroThrottleValue + 60;

const idleThrottleValue = zeroThrottleValue + FC.PID_ADVANCED_CONFIG.digitalIdlePercent * 1000 / 100;
const motorConfig = {
numberOfMotors: self.numberOfValidOutputs,
motorStopValue: zeroThrottleValue,
Expand Down

0 comments on commit 5227feb

Please sign in to comment.