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_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
static bool kill_switch_is_on(void)
enum arming_state autopilot_arming_state
static bool rc_attitude_sticks_centered(void)
#define THROTTLE_STICK_DOWN()
static void autopilot_arming_init(void)
Some helper functions to check RC sticks.
#define MODE_MANUAL
Default RC mode.