29 #ifndef AUTOPILOT_ARMING_YAW_H
30 #define AUTOPILOT_ARMING_YAW_H
41 #ifndef MOTOR_ARMING_DELAY
42 #define MOTOR_ARMING_DELAY 40
46 #define MOTOR_RE_ARM_TIME 10.0
88 #define YAW_MUST_BE_CENTERED true
89 #define YAW_MUST_BE_PUSHED false
uint8_t autopilot_get_mode(void)
get autopilot mode
void autopilot_set_in_flight(bool in_flight)
set in_flight flag
struct pprz_autopilot autopilot
Global autopilot structure.
bool autopilot_get_motors_on(void)
get motors status
bool autopilot_arming_motors_on(bool motors_on)
turn motors on/off during arming, not done automatically prevents takeoff with preflight checks
Core autopilot interface common to all firmwares.
bool motors_on
motor status
uint8_t arming_status
arming status
Arming procedure for rotorcraft, common definitions.
#define AP_ARMING_STATUS_THROTTLE_NOT_DOWN
#define AP_ARMING_STATUS_ARMED
#define AP_ARMING_STATUS_YAW_NOT_CENTERED
#define AP_ARMING_STATUS_WAITING
#define AP_ARMING_STATUS_KILLED
#define AP_ARMING_STATUS_DISARMING
#define AP_ARMING_STATUS_ROLL_NOT_CENTERED
#define AP_ARMING_STATUS_YAW_CENTERED
#define AP_ARMING_STATUS_PITCH_NOT_CENTERED
#define YAW_MUST_BE_CENTERED
#define MOTOR_ARMING_DELAY
Delay until motors are armed/disarmed.
static void autopilot_arming_set(bool motors_on)
Update the status of the check_motors state machine.
#define YAW_MUST_BE_PUSHED
static bool autopilot_arming_check_valid(bool yaw_must_be_centered)
Checks all arm requirements and returns true if OK and false otherwise.
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF.
@ STATUS_MOTORS_RC_KILLED
@ STATUS_MOTORS_AUTOMATICALLY_OFF
@ STATUS_MOTORS_AUTOMATICALLY_OFF_SAFETY_WAIT
@ STATUS_M_OFF_STICK_PUSHED
@ STATUS_M_ON_STICK_PUSHED
#define MOTOR_RE_ARM_TIME
static void autopilot_arming_init(void)
enum arming_state autopilot_check_motor_status
uint32_t autopilot_motors_on_counter
#define THROTTLE_STICK_DOWN()
#define ROLL_STICK_CENTERED()
#define PITCH_STICK_CENTERED()
#define YAW_STICK_CENTERED()
static bool kill_switch_is_on(void)
#define YAW_STICK_PUSHED()
#define AP_MODE_KILL
Static autopilot modes.
Rover specific autopilot interface and initialization.
Architecture independent timing functions.
static float get_sys_time_float(void)
Get the time in seconds since startup.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.