mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +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;
|
||||
}
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue