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!"
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_t autopilot_unarmed_in_auto
bool_t autopilot_motors_on
static bool_t kill_switch_is_on(void)
static void autopilot_arming_set(bool_t motors_on)
static bool_t rc_attitude_sticks_centered(void)
enum arming_state autopilot_arming_state
#define THROTTLE_STICK_DOWN()
static void autopilot_arming_init(void)
Some helper functions to check RC sticks.
#define MODE_MANUAL
Default RC mode.