mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Allow mixer to use failsafe throttle value that is less than
minthrottle.
This commit is contained in:
parent
d0a9d14b87
commit
22bf890cf0
1 changed files with 12 additions and 8 deletions
|
@ -703,11 +703,14 @@ void mixTable(void)
|
|||
} else {
|
||||
motor[i] = constrain(motor[i], escAndServoConfig->mincommand, flight3DConfig->deadband3d_low);
|
||||
}
|
||||
} else {
|
||||
if (isFailsafeActive) {
|
||||
motor[i] = constrain(motor[i], escAndServoConfig->mincommand, escAndServoConfig->maxthrottle);
|
||||
} else {
|
||||
// If we're at minimum throttle and FEATURE_MOTOR_STOP enabled,
|
||||
// do not spin the motors.
|
||||
motor[i] = constrain(motor[i], escAndServoConfig->minthrottle, escAndServoConfig->maxthrottle);
|
||||
if ((rcData[THROTTLE]) < rxConfig->mincheck && !isFailsafeActive) {
|
||||
if ((rcData[THROTTLE]) < rxConfig->mincheck) {
|
||||
if (feature(FEATURE_MOTOR_STOP)) {
|
||||
motor[i] = escAndServoConfig->mincommand;
|
||||
} else if (mixerConfig->pid_at_min_throttle == 0) {
|
||||
|
@ -716,6 +719,7 @@ void mixTable(void)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for (i = 0; i < motorCount; i++) {
|
||||
motor[i] = motor_disarmed[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue