AP_Notify: Stop alarm when EKF goes from abnormal to normal

This commit is contained in:
muramura 2023-10-22 23:19:44 +09:00
parent b6c9ac2569
commit 8b7c9b1a40
1 changed files with 2 additions and 0 deletions

View File

@ -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();
} }
} }
} }