mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Unified BOX3DDISABLE
and BOX3DONASWITCH
switches.
This commit is contained in:
parent
a301a0019e
commit
232fc4e8de
9 changed files with 23 additions and 23 deletions
|
@ -577,7 +577,7 @@ static void calculateThrottleAndCurrentMotorEndpoints(timeUs_t currentTimeUs)
|
|||
throttle = rcCommand[THROTTLE] - rcCommand3dDeadBandHigh;
|
||||
currentThrottleInputRange = rcCommandThrottleRange3dHigh;
|
||||
} else if ((rcThrottlePrevious <= rcCommand3dDeadBandLow &&
|
||||
!isModeActivationConditionPresent(BOX3DONASWITCH)) ||
|
||||
!flight3DConfigMutable()->switched_mode3d) ||
|
||||
isMotorsReversed()) {
|
||||
// INVERTED_TO_DEADBAND
|
||||
motorRangeMin = motorOutputLow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue