1
0
Fork 0
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:
ctzsnooze 2023-09-01 23:58:26 +10:00 committed by GitHub
parent d1025bd1f5
commit a35a5af16c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 23 additions and 27 deletions

View file

@ -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;