|
APM:Libraries
|
#include <Buzzer.h>
Classes | |
| struct | buzzer_flag_type |
| buzzer_flag_type - bitmask of current state and ap_notify states we track More... | |
Public Types | |
| enum | BuzzerPattern { NONE = 0, SINGLE_BUZZ = 1, DOUBLE_BUZZ = 2, GPS_GLITCH = 3, ARMING_BUZZ = 4, BARO_GLITCH = 5, EKF_BAD = 6 } |
Public Member Functions | |
| Buzzer () | |
| Constructor. More... | |
| bool | init (void) |
| init - initialise the buzzer More... | |
| void | update () |
| update - updates buzzer according to timed_updated. Should be called at 50Hz More... | |
| void | on (bool on_off) |
| on - turns the buzzer on or off More... | |
| void | play_pattern (BuzzerPattern pattern_id) |
| play_pattern - plays the defined buzzer pattern More... | |
Public Member Functions inherited from NotifyDevice | |
| virtual | ~NotifyDevice () |
| virtual void | handle_led_control (mavlink_message_t *msg) |
| virtual void | handle_play_tune (mavlink_message_t *msg) |
Private Attributes | |
| struct Buzzer::buzzer_flag_type | _flags |
| uint8_t | _counter |
| BuzzerPattern | _pattern |
| uint8_t | _pattern_counter |
| uint32_t | _arming_buzz_start_ms |
| uint8_t | _pin |
Additional Inherited Members | |
Public Attributes inherited from NotifyDevice | |
| const AP_Notify * | pNotify |
|
inline |
|
virtual |
init - initialise the buzzer
Implements NotifyDevice.
Definition at line 34 of file Buzzer.cpp.
Referenced by Buzzer().
| void Buzzer::on | ( | bool | on_off | ) |
on - turns the buzzer on or off
Definition at line 210 of file Buzzer.cpp.
Referenced by Buzzer(), init(), and update().
| void Buzzer::play_pattern | ( | BuzzerPattern | pattern_id | ) |
play_pattern - plays the defined buzzer pattern
Definition at line 225 of file Buzzer.cpp.
Referenced by update().
|
virtual |
update - updates buzzer according to timed_updated. Should be called at 50Hz
Implements NotifyDevice.
Definition at line 55 of file Buzzer.cpp.
Referenced by Buzzer().
|
private |
|
private |
|
private |
Definition at line 72 of file Buzzer.h.
Referenced by play_pattern(), and update().
|
private |
Definition at line 73 of file Buzzer.h.
Referenced by play_pattern(), and update().
|
private |
1.8.13