|
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_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
void autopilot_set_in_flight(bool in_flight)
set in_flight flag
static void autopilot_arming_set(bool motors_on)
Update the status of the check_motors state machine.
#define YAW_MUST_BE_PUSHED
static void autopilot_arming_init(void)
uint32_t autopilot_motors_on_counter
static float get_sys_time_float(void)
Get the time in seconds since startup.
#define AP_ARMING_STATUS_WAITING
#define THROTTLE_STICK_DOWN()
#define AP_ARMING_STATUS_THROTTLE_NOT_DOWN
#define AP_MODE_KILL
Static autopilot modes.
@ STATUS_MOTORS_AUTOMATICALLY_OFF
#define MOTOR_RE_ARM_TIME
#define YAW_STICK_CENTERED()
bool motors_on
motor status
#define YAW_MUST_BE_CENTERED
struct pprz_autopilot autopilot
Global autopilot structure.
#define AP_ARMING_STATUS_YAW_NOT_CENTERED
#define AP_ARMING_STATUS_KILLED
Architecture independent timing functions.
#define AP_ARMING_STATUS_PITCH_NOT_CENTERED
#define AP_ARMING_STATUS_DISARMING
@ STATUS_M_ON_STICK_PUSHED
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF.
#define YAW_STICK_PUSHED()
#define AP_ARMING_STATUS_YAW_CENTERED
#define AP_ARMING_STATUS_ARMED
static bool kill_switch_is_on(void)
static bool autopilot_arming_check_valid(bool yaw_must_be_centered)
Checks all arm requirements and returns true if OK and false otherwise.
#define PITCH_STICK_CENTERED()
#define MOTOR_ARMING_DELAY
Delay until motors are armed/disarmed.
#define ROLL_STICK_CENTERED()
enum arming_state autopilot_check_motor_status
#define AP_ARMING_STATUS_ROLL_NOT_CENTERED
uint8_t autopilot_get_mode(void)
get autopilot mode
@ STATUS_M_OFF_STICK_PUSHED
@ STATUS_MOTORS_RC_KILLED
@ STATUS_MOTORS_AUTOMATICALLY_OFF_SAFETY_WAIT
uint8_t arming_status
arming status