1
0
Fork 0
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:
Michael Keller 2019-01-27 11:38:15 +13:00 committed by GitHub
commit 06f89603bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;