mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Merge pull request #7463 from etracer65/mixer_throttle_fix
Fix mixer throttle calculation
This commit is contained in:
commit
06f89603bc
1 changed files with 2 additions and 2 deletions
|
@ -402,7 +402,7 @@ void initEscEndpoints(void)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rcCommandThrottleRange = PWM_RANGE_MAX - rxConfig()->mincheck;
|
rcCommandThrottleRange = PWM_RANGE_MAX - PWM_RANGE_MIN;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mixerInit(mixerMode_e mixerMode)
|
void mixerInit(mixerMode_e mixerMode)
|
||||||
|
@ -643,7 +643,7 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs)
|
||||||
pidResetIterm();
|
pidResetIterm();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
throttle = rcCommand[THROTTLE] - rxConfig()->mincheck + throttleAngleCorrection;
|
throttle = rcCommand[THROTTLE] - PWM_RANGE_MIN + throttleAngleCorrection;
|
||||||
currentThrottleInputRange = rcCommandThrottleRange;
|
currentThrottleInputRange = rcCommandThrottleRange;
|
||||||
motorRangeMin = motorOutputLow;
|
motorRangeMin = motorOutputLow;
|
||||||
motorRangeMax = motorOutputHigh;
|
motorRangeMax = motorOutputHigh;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue