|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
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()
#define AP_MODE_KILL
Static autopilot modes.
bool autopilot_unarmed_in_auto
bool motors_on
motor status
struct pprz_autopilot autopilot
Global autopilot structure.
static void autopilot_arming_init(void)
enum arming_state autopilot_arming_state
static bool kill_switch_is_on(void)
static bool rc_attitude_sticks_centered(void)
Convenience macro for 3way 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.
static void autopilot_arming_set(bool motors_on)
uint8_t autopilot_get_mode(void)
get autopilot mode
#define MODE_MANUAL
Default RC mode.