30 #include "generated/airframe.h"
34 #include "autopilot_rc_helpers.h"
38 #ifndef SAFETY_WARNING_LED
39 #error You must define SAFETY_WARNING_LED to use this module!
uint8_t autopilot_get_mode(void)
get autopilot mode
bool autopilot_get_motors_on(void)
get motors status
Core autopilot interface common to all firmwares.
struct Electrical electrical
Interface for electrical status: supply voltage, current, battery status, etc.
#define LOW_BAT_LEVEL
low battery level in Volts (for 3S LiPo)
float vsupply
supply voltage in V
arch independent LED (Light Emitting Diodes) API
Simple module to blink LEDs when battery voltage drops below a certain level, radio control is lost o...
void led_safety_status_init(void)
Initialises periodic loop; place more init functions here if expanding driver.
void led_safety_status_periodic(void)
Periodic function that makes the leds blink in the right pattern for each situation.
#define SAFETY_WARNING_LED
struct RadioControl radio_control
Generic interface for radio control modules.
#define THROTTLE_STICK_DOWN()
#define ROLL_STICK_CENTERED()
#define PITCH_STICK_CENTERED()
#define YAW_STICK_CENTERED()
#define MODE_MANUAL
Default RC mode.