1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00

Fixed tests, added crash indication.

This commit is contained in:
mikeller 2019-04-05 07:58:56 +13:00
parent 247f759652
commit 760a524027
8 changed files with 29 additions and 23 deletions

View file

@ -887,6 +887,7 @@ static void detectAndSetCrashRecovery(
&& fabsf(errorRate) > crashGyroThreshold
&& fabsf(getSetpointRate(axis)) < crashSetpointThreshold) {
if (crash_recovery == PID_CRASH_RECOVERY_DISARM) {
setArmingDisabled(ARMING_DISABLED_CRASH_DETECTED);
disarm();
} else {
inCrashRecoveryMode = true;