29 #ifndef AUTOPILOT_ARMING_THROTTLE_H
30 #define AUTOPILOT_ARMING_THROTTLE_H
35 #define AUTOPILOT_ARMING_DELAY 10
#define THROTTLE_STICK_DOWN()
#define AP_ARMING_STATUS_PITCH_NOT_CENTERED
#define AP_MODE_KILL
Static autopilot modes.
#define AP_ARMING_STATUS_DISARMING
enum arming_throttle_state autopilot_arming_state
#define AP_ARMING_STATUS_THROTTLE_DOWN
static void autopilot_arming_set(bool motors_on)
uint8_t autopilot_arming_delay_counter
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF.
#define AP_ARMING_STATUS_THROTTLE_NOT_DOWN
struct pprz_autopilot autopilot
Global autopilot structure.
#define MODE_MANUAL
Default RC mode.
#define AUTOPILOT_ARMING_DELAY
Some helper functions to check RC sticks.
#define AP_ARMING_STATUS_ARMED
#define ROLL_STICK_CENTERED()
uint8_t arming_status
arming status
#define YAW_STICK_CENTERED()
#define PITCH_STICK_CENTERED()
bool motors_on
motor status
#define AP_ARMING_STATUS_ARMING
#define AP_ARMING_STATUS_YAW_NOT_CENTERED
bool autopilot_unarmed_in_auto
#define AP_ARMING_STATUS_ROLL_NOT_CENTERED
static void autopilot_arming_init(void)
static bool autopilot_arming_check_valid(void)
Checks all arm requirements and returns true if OK and false otherwise.
#define AP_ARMING_STATUS_KILLED
#define AP_ARMING_STATUS_NOT_MODE_MANUAL
Rotorcraft specific autopilot interface and initialization.
uint8_t autopilot_get_mode(void)
get autopilot mode