42 #ifndef COMMANDER_HELPER_H_ 43 #define COMMANDER_HELPER_H_ 46 #include <uORB/topics/vehicle_status.h> 47 #include <uORB/topics/actuator_armed.h> 48 #include <uORB/topics/vehicle_control_mode.h> 53 bool is_multirotor(
const struct vehicle_status_s *current_status);
54 bool is_rotary_wing(
const struct vehicle_status_s *current_status);
55 bool is_vtol(
const struct vehicle_status_s *current_status);
57 int buzzer_init(
void);
58 void buzzer_deinit(
void);
60 void set_tune_override(
int tune);
61 void set_tune(
int tune);
62 void tune_home_set(
bool use_buzzer);
63 void tune_mission_ok(
bool use_buzzer);
64 void tune_mission_fail(
bool use_buzzer);
68 void tune_failsafe(
bool use_buzzer);
70 int blink_msg_state();
74 void led_deinit(
void);
75 int led_toggle(
int led);
LED driver API to control the onboard LED(s) via ioctl() interface.
int led_init(void)
Ideally we'd be able to get these from up_internal.h, but since we want to be able to disable the Nut...
Definition: led.c:63
void tune_neutral(bool use_buzzer)
Blink white LED and play neutral tune (if use_buzzer == true).
Definition: commander_helper.cpp:226
void tune_positive(bool use_buzzer)
Blink green LED and play positive tune (if use_buzzer == true).
Definition: commander_helper.cpp:213
Led device API to control the external LED(s) via uORB interface.
void rgbled_set_color_and_mode(uint8_t color, uint8_t mode)
set the LED color & mode
Definition: commander_helper.cpp:343
API for the uORB lightweight object broker.
void tune_negative(bool use_buzzer)
Blink red LED and play negative tune (if use_buzzer == true).
Definition: commander_helper.cpp:239