mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: Stop alarm when EKF goes from abnormal to normal
This commit is contained in:
parent
b6c9ac2569
commit
8b7c9b1a40
|
@ -442,6 +442,8 @@ void AP_ToneAlarm::update()
|
||||||
flags.failsafe_ekf = AP_Notify::flags.failsafe_ekf;
|
flags.failsafe_ekf = AP_Notify::flags.failsafe_ekf;
|
||||||
if (flags.failsafe_ekf) {
|
if (flags.failsafe_ekf) {
|
||||||
play_tone(AP_NOTIFY_TONE_EKF_ALERT);
|
play_tone(AP_NOTIFY_TONE_EKF_ALERT);
|
||||||
|
} else {
|
||||||
|
stop_cont_tone();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue