diff --git a/libraries/AP_Notify/ToneAlarm_PX4.cpp b/libraries/AP_Notify/ToneAlarm_PX4.cpp index 081edf7af5..f034c94b09 100644 --- a/libraries/AP_Notify/ToneAlarm_PX4.cpp +++ b/libraries/AP_Notify/ToneAlarm_PX4.cpp @@ -74,7 +74,7 @@ bool ToneAlarm_PX4::init() return false; } - // set initial boot states. This prevents us issueing a arming + // set initial boot states. This prevents us issuing a arming // warning in plane and rover on every boot flags.armed = AP_Notify::flags.armed; flags.failsafe_battery = AP_Notify::flags.failsafe_battery; diff --git a/libraries/AP_Notify/ToneAlarm_PX4.h b/libraries/AP_Notify/ToneAlarm_PX4.h index 9011878c37..d15e0393ee 100644 --- a/libraries/AP_Notify/ToneAlarm_PX4.h +++ b/libraries/AP_Notify/ToneAlarm_PX4.h @@ -36,9 +36,13 @@ private: /// play_tune - play one of the pre-defined tunes void play_tone(const uint8_t tone_index); + // play_string - play tone specified by the provided string of notes void play_string(const char *str); + // stop_cont_tone - stop playing the currently playing continuous tone void stop_cont_tone(); + + // check_cont_tone - check if we should begin playing a continuous tone void check_cont_tone(); int _tonealarm_fd; // file descriptor for the tone alarm @@ -50,9 +54,9 @@ private: uint8_t failsafe_gps : 1; // 1 if gps failsafe uint8_t arming_failed : 1; // 0 = failing checks, 1 = passed uint8_t parachute_release : 1; // 1 if parachute is being released - uint8_t pre_arm_check : 1; - uint8_t failsafe_radio : 1; - uint8_t user_mode_initialized : 1; + uint8_t pre_arm_check : 1; // 0 = failing checks, 1 = passed + uint8_t failsafe_radio : 1; // 1 if radio failsafe + uint8_t user_mode_initialized : 1; // 1 if the flight mode has changed or failed to be changed } flags; int8_t _cont_tone_playing;