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:
parent
247f759652
commit
760a524027
8 changed files with 29 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue