29 #ifndef AUTOPILOT_ARMING_SWITCH_H
30 #define AUTOPILOT_ARMING_SWITCH_H
34 #ifndef RADIO_KILL_SWITCH
35 #error "You need to have a RADIO_KILL_SWITCH configured to arm the motors with the switch!"
#define THROTTLE_STICK_DOWN()
static void autopilot_arming_set(bool motors_on)
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF using the kill switch.
bool autopilot_unarmed_in_auto
#define AP_MODE_KILL
Static autopilot modes.
static bool rc_attitude_sticks_centered(void)
Convenience macro for 3way switch.
enum arming_state autopilot_arming_state
static bool kill_switch_is_on(void)
struct pprz_autopilot autopilot
Global autopilot structure.
#define MODE_MANUAL
Default RC mode.
Some helper functions to check RC sticks.
static void autopilot_arming_init(void)
bool motors_on
motor status
uint8_t autopilot_get_mode(void)
get autopilot mode