29 #ifndef AUTOPILOT_ARMING_YAW_H
30 #define AUTOPILOT_ARMING_YAW_H
40 #ifndef MOTOR_ARMING_DELAY
41 #define MOTOR_ARMING_DELAY 40
79 #define YAW_MUST_BE_CENTERED true
80 #define YAW_MUST_BE_PUSHED false
#define THROTTLE_STICK_DOWN()
#define AP_ARMING_STATUS_PITCH_NOT_CENTERED
#define YAW_MUST_BE_PUSHED
uint32_t autopilot_motors_on_counter
static void autopilot_arming_set(bool motors_on)
Update the status of the check_motors state machine.
#define AP_ARMING_STATUS_YAW_CENTERED
#define YAW_MUST_BE_CENTERED
#define AP_MODE_KILL
Static autopilot modes.
#define AP_ARMING_STATUS_DISARMING
enum arming_state autopilot_check_motor_status
#define MOTOR_ARMING_DELAY
Delay until motors are armed/disarmed.
#define AP_ARMING_STATUS_THROTTLE_NOT_DOWN
struct pprz_autopilot autopilot
Global autopilot structure.
#define AP_ARMING_STATUS_WAITING
Some helper functions to check RC sticks.
#define AP_ARMING_STATUS_ARMED
#define ROLL_STICK_CENTERED()
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF.
#define YAW_STICK_CENTERED()
Core autopilot interface common to all firmwares.
#define PITCH_STICK_CENTERED()
bool motors_on
arming status
#define AP_ARMING_STATUS_YAW_NOT_CENTERED
#define YAW_STICK_PUSHED()
#define AP_ARMING_STATUS_ROLL_NOT_CENTERED
void autopilot_set_in_flight(bool in_flight)
set in_flight flag
#define AP_ARMING_STATUS_KILLED
static void autopilot_arming_init(void)
Rotorcraft specific autopilot interface and initialization.
static bool autopilot_arming_check_valid(bool yaw_must_be_centered)
Checks all arm requirements and returns true if OK and false otherwise.
uint8_t autopilot_get_mode(void)
get autopilot mode