AP_Notify: play vehicle lost tone

This commit is contained in:
Vinicius Juvinski 2016-05-04 23:48:44 -03:00 committed by Lucas De Marchi
parent c1dd3cb921
commit 3bae8373e6
1 changed files with 5 additions and 0 deletions

View File

@ -185,6 +185,11 @@ void Buzzer::update()
return;
}
// if vehicle lost was enabled, starting beep
if (AP_Notify::flags.vehicle_lost) {
play_pattern(DOUBLE_BUZZ);
}
// if battery failsafe constantly single buzz
if (AP_Notify::flags.failsafe_battery) {
play_pattern(SINGLE_BUZZ);