mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
AP_Notify: play sad tone if prearm checks start to fail
This commit is contained in:
parent
7b3e111f85
commit
901fe55d04
@ -91,6 +91,8 @@ const ToneAlarm_PX4::Tone ToneAlarm_PX4::_tones[] {
|
||||
{ "MBT255L8>A+AA-", true},
|
||||
#define AP_NOTIFY_PX4_TONE_QUIET_SHUTDOWN 27
|
||||
{ "MFMST200L32O3ceP32cdP32ceP32c<c>c<cccP8L32>c>c<P32<c<c", false },
|
||||
#define AP_NOTIFY_PX4_TONE_QUIET_NOT_READY_OR_NOT_FINISHED 28
|
||||
{ "MFT200L4<B#4A#6G#6", false },
|
||||
};
|
||||
|
||||
bool ToneAlarm_PX4::init()
|
||||
@ -275,6 +277,8 @@ void ToneAlarm_PX4::update()
|
||||
flags.pre_arm_check = AP_Notify::flags.pre_arm_check;
|
||||
if (flags.pre_arm_check) {
|
||||
play_tone(AP_NOTIFY_PX4_TONE_QUIET_READY_OR_FINISHED);
|
||||
} else {
|
||||
play_tone(AP_NOTIFY_PX4_TONE_QUIET_NOT_READY_OR_NOT_FINISHED);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user