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!"
uint8_t autopilot_get_mode(void)
get autopilot mode
bool autopilot_arming_motors_on(bool motors_on)
turn motors on/off during arming, not done automatically prevents takeoff with preflight checks
Arming procedure for rotorcraft, common definitions.
enum arming_state autopilot_arming_state
static void autopilot_arming_set(bool motors_on)
bool autopilot_unarmed_in_auto
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF using the kill switch.
static void autopilot_arming_init(void)
#define THROTTLE_STICK_DOWN()
static bool kill_switch_is_on(void)
static bool rc_attitude_sticks_centered(void)
Convenience macro for 3way switch.
#define MODE_MANUAL
Default RC mode.
#define AP_MODE_KILL
Static autopilot modes.