Firmware
Functions
commander_helper.h File Reference

Commander helper functions definitions. More...

#include <uORB/uORB.h>
#include <uORB/topics/vehicle_status.h>
#include <uORB/topics/actuator_armed.h>
#include <uORB/topics/vehicle_control_mode.h>
#include <drivers/drv_led.h>
#include <drivers/drv_board_led.h>

Go to the source code of this file.

Functions

bool is_multirotor (const struct vehicle_status_s *current_status)
 
bool is_rotary_wing (const struct vehicle_status_s *current_status)
 
bool is_vtol (const struct vehicle_status_s *current_status)
 
int buzzer_init (void)
 
void buzzer_deinit (void)
 
void set_tune_override (int tune)
 
void set_tune (int tune)
 
void tune_home_set (bool use_buzzer)
 
void tune_mission_ok (bool use_buzzer)
 
void tune_mission_fail (bool use_buzzer)
 
void tune_positive (bool use_buzzer)
 Blink green LED and play positive tune (if use_buzzer == true).
 
void tune_neutral (bool use_buzzer)
 Blink white LED and play neutral tune (if use_buzzer == true).
 
void tune_negative (bool use_buzzer)
 Blink red LED and play negative tune (if use_buzzer == true).
 
void tune_failsafe (bool use_buzzer)
 
int blink_msg_state ()
 
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 NuttX use of leds for system indication at will and there is no separate switch, we need to build independent of the CONFIG_ARCH_LEDS configuration switch.
 
void led_deinit (void)
 
int led_toggle (int led)
 
int led_on (int led)
 
int led_off (int led)
 
void rgbled_set_color_and_mode (uint8_t color, uint8_t mode)
 set the LED color & mode More...
 
void rgbled_set_color_and_mode (uint8_t color, uint8_t mode, uint8_t blinks, uint8_t prio)
 

Detailed Description

Commander helper functions definitions.

Author
Thomas Gubler thoma.nosp@m.sgub.nosp@m.ler@s.nosp@m.tude.nosp@m.nt.et.nosp@m.hz.c.nosp@m.h
Julian Oes julia.nosp@m.n@oe.nosp@m.s.ch

Function Documentation

§ rgbled_set_color_and_mode()

void rgbled_set_color_and_mode ( uint8_t  color,
uint8_t  mode 
)

set the LED color & mode

Parameters
color
See also
led_control_s::COLOR_*
Parameters
mode
See also
led_control_s::MODE_*