APM:Libraries
|
#include <AP_Notify.h>
Classes | |
struct | notify_events_type |
notify_events_type - bitmask of active events. More... | |
struct | notify_flags_and_values_type |
notify_flags_type - bitmask of notification flags More... | |
Public Types | |
enum | Oreo_LED_Theme { OreoLED_Disabled = 0, OreoLED_Aircraft = 1, OreoLED_Automobile = 2 } |
Public Member Functions | |
AP_Notify () | |
AP_Notify (const AP_Notify &other)=delete | |
AP_Notify & | operator= (const AP_Notify &)=delete |
void | init (bool enable_external_leds) |
void | add_backends (void) |
void | update (void) |
update - allow updates of leds that cannot be updated during a timed interrupt More... | |
bool | buzzer_enabled () const |
void | set_flight_mode_str (const char *str) |
const char * | get_flight_mode_str () const |
void | send_text (const char *str) |
const char * | get_text () const |
uint8_t | get_buzz_pin () const |
Static Public Member Functions | |
static AP_Notify * | instance (void) |
static void | handle_led_control (mavlink_message_t *msg) |
static void | handle_play_tune (mavlink_message_t *msg) |
Static Public Attributes | |
static struct notify_flags_and_values_type | flags |
static struct notify_events_type | events |
static const struct AP_Param::GroupInfo | var_info [] |
Private Attributes | |
AP_Int8 | _rgb_led_brightness |
AP_Int8 | _rgb_led_override |
AP_Int8 | _buzzer_enable |
AP_Int8 | _display_type |
AP_Int8 | _oreo_theme |
AP_Int8 | _buzzer_pin |
char | _send_text [NOTIFY_TEXT_BUFFER_SIZE] |
uint32_t | _send_text_updated_millis |
char | _flight_mode_str [5] |
Static Private Attributes | |
static AP_Notify * | _instance |
static NotifyDevice * | _devices [] |
static uint8_t | _num_devices |
Friends | |
class | RGBLed |
class | Display |
Definition at line 38 of file AP_Notify.h.
Enumerator | |
---|---|
OreoLED_Disabled | |
OreoLED_Aircraft | |
OreoLED_Automobile |
Definition at line 55 of file AP_Notify.h.
AP_Notify::AP_Notify | ( | ) |
|
delete |
void AP_Notify::add_backends | ( | void | ) |
Definition at line 119 of file AP_Notify.cpp.
Referenced by init().
|
inline |
Definition at line 135 of file AP_Notify.h.
Referenced by ToneAlarm_ChibiOS::update(), ToneAlarm_Linux::update(), and ToneAlarm_PX4::update().
|
inline |
Definition at line 146 of file AP_Notify.h.
Referenced by Buzzer::init().
|
inline |
Definition at line 139 of file AP_Notify.h.
Referenced by Display::update_mode().
|
inline |
Definition at line 143 of file AP_Notify.h.
Referenced by Display::update_text().
|
static |
Definition at line 300 of file AP_Notify.cpp.
Referenced by GCS_MAVLINK::handle_common_message().
|
static |
Definition at line 310 of file AP_Notify.cpp.
Referenced by GCS_MAVLINK::handle_common_message().
void AP_Notify::init | ( | bool | enable_external_leds | ) |
|
inlinestatic |
Definition at line 50 of file AP_Notify.h.
Referenced by GCS::send_statustext().
void AP_Notify::send_text | ( | const char * | str | ) |
Definition at line 326 of file AP_Notify.cpp.
Referenced by get_flight_mode_str(), and GCS::send_statustext().
void AP_Notify::set_flight_mode_str | ( | const char * | str | ) |
Definition at line 320 of file AP_Notify.cpp.
Referenced by buzzer_enabled().
void AP_Notify::update | ( | void | ) |
update - allow updates of leds that cannot be updated during a timed interrupt
Definition at line 287 of file AP_Notify.cpp.
|
friend |
Definition at line 41 of file AP_Notify.h.
Referenced by add_backends().
|
friend |
Definition at line 40 of file AP_Notify.h.
|
private |
Definition at line 155 of file AP_Notify.h.
Referenced by buzzer_enabled().
|
private |
Definition at line 158 of file AP_Notify.h.
Referenced by get_buzz_pin().
|
staticprivate |
Definition at line 164 of file AP_Notify.h.
Referenced by AP_Notify(), handle_led_control(), handle_play_tune(), init(), and update().
|
private |
Definition at line 156 of file AP_Notify.h.
Referenced by Display::init().
|
private |
Definition at line 162 of file AP_Notify.h.
Referenced by get_flight_mode_str(), init(), and set_flight_mode_str().
|
staticprivate |
Definition at line 150 of file AP_Notify.h.
Referenced by AP_Notify(), and instance().
|
staticprivate |
Definition at line 165 of file AP_Notify.h.
Referenced by add_backends(), AP_Notify(), handle_led_control(), handle_play_tune(), init(), and update().
|
private |
Definition at line 157 of file AP_Notify.h.
Referenced by add_backends().
|
private |
Definition at line 153 of file AP_Notify.h.
Referenced by RGBLed::update_colours().
|
private |
Definition at line 154 of file AP_Notify.h.
Referenced by RGBLed::handle_led_control(), RGBLed::set_rgb(), and RGBLed::update().
|
private |
Definition at line 160 of file AP_Notify.h.
Referenced by get_text(), init(), and send_text().
|
private |
Definition at line 161 of file AP_Notify.h.
Referenced by init(), send_text(), and Display::update_text().
|
static |
Definition at line 118 of file AP_Notify.h.
Referenced by Compass::_accept_calibration(), Compass::_cancel_calibration(), Compass::_start_calibration(), AP_Notify(), AP_Tuning::check_controller_error(), AP_Tuning::check_input(), AP_Tuning::check_selector_switch(), Compass::compass_cal_update(), init(), AP_Tuning::next_parameter(), ToneAlarm_Linux::update(), ToneAlarm_ChibiOS::update(), ToneAlarm_PX4::update(), Buzzer::update(), and update().
|
static |
Definition at line 117 of file AP_Notify.h.
Referenced by AP_InertialSensor::_init_gyro(), AP_Notify(), AP_Motors::armed(), AP_Arming::battery_checks(), AP_Frsky_Telem::calc_ap_status(), AP_BattMonitor::check_failsafes(), Compass::compass_cal_update(), ToneAlarm_ChibiOS::init(), ToneAlarm_Linux::init(), ToneAlarm_PX4::init(), Buzzer::init(), init(), AP_Arming::manual_transmitter_checks(), OreoLED_PX4::mode_auto_flight(), OreoLED_PX4::mode_failsafe_batt(), OreoLED_PX4::mode_failsafe_radio(), OreoLED_PX4::mode_firmware_update(), OreoLED_PX4::mode_init(), OreoLED_PX4::mode_pilot_flight(), AP_BattMonitor::read(), AP_Parachute::release(), OreoLED_PX4::set_standard_colors(), setup(), AP_InertialSensor::simple_accel_cal(), AP_BattMonitor_SMBus_Solo::timer(), Display::update(), ToneAlarm_ChibiOS::update(), ToneAlarm_Linux::update(), ToneAlarm_PX4::update(), Buzzer::update(), AP_Parachute::update(), AP_GPS::update(), Display::update_arm(), Display::update_battery(), RGBLed::update_colours(), Display::update_ekf(), AP_AHRS_NavEKF::update_EKF2(), AP_AHRS_NavEKF::update_EKF3(), Display::update_gps(), Display::update_gps_sats(), and Display::update_prearm().
|
static |
Definition at line 145 of file AP_Notify.h.
Referenced by AP_Notify().