mirror of https://github.com/ArduPilot/ardupilot
AP_Notify: ChibiOS: beep on mode change
This commit is contained in:
parent
557f8cee43
commit
9480572075
|
@ -79,6 +79,15 @@ void ToneAlarm_ChibiOS::update()
|
|||
}
|
||||
}
|
||||
|
||||
// notify the user when their mode change was successful
|
||||
if (AP_Notify::events.user_mode_change) {
|
||||
if (AP_Notify::flags.armed) {
|
||||
play_tune(TONE_NOTIFY_MODE_CHANGE_LOUD);
|
||||
} else {
|
||||
play_tune(TONE_NOTIFY_MODE_CHANGE_SOFT);
|
||||
}
|
||||
}
|
||||
|
||||
// check if battery status has changed
|
||||
if (flags.failsafe_battery != AP_Notify::flags.failsafe_battery) {
|
||||
flags.failsafe_battery = AP_Notify::flags.failsafe_battery;
|
||||
|
|
Loading…
Reference in New Issue