mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
Log disarm reason.
This commit is contained in:
parent
6433aaa688
commit
2fead0aedf
16 changed files with 60 additions and 23 deletions
|
@ -933,7 +933,7 @@ static void detectAndSetCrashRecovery(
|
|||
&& fabsf(getSetpointRate(axis)) < crashSetpointThreshold) {
|
||||
if (crash_recovery == PID_CRASH_RECOVERY_DISARM) {
|
||||
setArmingDisabled(ARMING_DISABLED_CRASH_DETECTED);
|
||||
disarm();
|
||||
disarm(DISARM_REASON_CRASH_PROTECTION);
|
||||
} else {
|
||||
inCrashRecoveryMode = true;
|
||||
crashDetectedAtUs = currentTimeUs;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue