Linux: handle arming_failed as event

This commit is contained in:
Randy Mackay 2015-02-03 05:58:08 +09:00
parent 3361002379
commit a991b4a823
2 changed files with 2 additions and 6 deletions

View File

@ -66,11 +66,8 @@ void ToneAlarm_Linux::update()
}
// check for arming failure
if(flags.arming_failed != AP_Notify::flags.arming_failed) {
flags.arming_failed = AP_Notify::flags.arming_failed;
if(flags.arming_failed) {
play_tune(TONE_ARMING_FAILURE_TUNE);
}
if (AP_Notify::events.arming_failed) {
play_tune(TONE_ARMING_FAILURE_TUNE);
}
// check if arming status has changed

View File

@ -44,7 +44,6 @@ private:
bool failsafe_battery : 1; // true if battery failsafe
bool gps_glitching : 1; // true if gps position is not good
bool failsafe_gps : 1; // true if gps failsafe
bool arming_failed : 1; // false = failing checks, true = passed
bool parachute_release : 1; // true if parachute is being released
} flags;
};