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
1 changed files with 2 additions and 2 deletions

View File

@ -402,7 +402,7 @@ void initEscEndpoints(void)
break;
}
rcCommandThrottleRange = PWM_RANGE_MAX - rxConfig()->mincheck;
rcCommandThrottleRange = PWM_RANGE_MAX - PWM_RANGE_MIN;
}
void mixerInit(mixerMode_e mixerMode)
@ -643,7 +643,7 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs)
pidResetIterm();
}
} else {
throttle = rcCommand[THROTTLE] - rxConfig()->mincheck + throttleAngleCorrection;
throttle = rcCommand[THROTTLE] - PWM_RANGE_MIN + throttleAngleCorrection;
currentThrottleInputRange = rcCommandThrottleRange;
motorRangeMin = motorOutputLow;
motorRangeMax = motorOutputHigh;