mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
Only allow arming when valid Rx signals are received (#13033)
* Only allow arming when failsafe criteria are cleared * 500ms RXLOSS period with 100ms minimum
This commit is contained in:
parent
d1025bd1f5
commit
a35a5af16c
9 changed files with 23 additions and 27 deletions
|
@ -297,10 +297,10 @@ void updateArmingStatus(void)
|
|||
|
||||
if (justGotRxBack && IS_RC_MODE_ACTIVE(BOXARM)) {
|
||||
// If the RX has just started to receive a signal again and the arm switch is on, apply arming restriction
|
||||
setArmingDisabled(ARMING_DISABLED_BAD_RX_RECOVERY);
|
||||
setArmingDisabled(ARMING_DISABLED_NOT_DISARMED);
|
||||
} else if (haveRx && !IS_RC_MODE_ACTIVE(BOXARM)) {
|
||||
// If RX signal is OK and the arm switch is off, remove arming restriction
|
||||
unsetArmingDisabled(ARMING_DISABLED_BAD_RX_RECOVERY);
|
||||
unsetArmingDisabled(ARMING_DISABLED_NOT_DISARMED);
|
||||
}
|
||||
|
||||
hadRx = haveRx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue