Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Arm the motors by with max yaw stick. More...
#include "autopilot_rc_helpers.h"
Go to the source code of this file.
Macros | |
#define | MOTOR_ARMING_DELAY 40 |
Delay until motors are armed/disarmed. More... | |
Enumerations | |
enum | arming_state { STATE_UNINIT, STATE_WAITING, STATE_STARTABLE, STATE_MOTORS_ON, STATUS_INITIALISE_RC, STATUS_MOTORS_AUTOMATICALLY_OFF, STATUS_MOTORS_AUTOMATICALLY_OFF_SAFETY_WAIT, STATUS_MOTORS_OFF, STATUS_M_OFF_STICK_PUSHED, STATUS_START_MOTORS, STATUS_MOTORS_ON, STATUS_M_ON_STICK_PUSHED, STATUS_STOP_MOTORS } |
Motors ON check state machine states. More... | |
Functions | |
static void | autopilot_arming_init (void) |
static void | autopilot_arming_set (bool motors_on) |
Update the status of the check_motors state machine. More... | |
static void | autopilot_arming_check_motors_on (void) |
State machine to check if motors should be turned ON or OFF. More... | |
Variables | |
uint32_t | autopilot_motors_on_counter |
enum arming_state | autopilot_check_motor_status |
Arm the motors by with max yaw stick.
Definition in file autopilot_arming_yaw.h.
#define MOTOR_ARMING_DELAY 40 |
Delay until motors are armed/disarmed.
In number of rc frames recieved. So 40 is usually ~1s.
Definition at line 39 of file autopilot_arming_yaw.h.
Referenced by autopilot_arming_check_motors_on().
enum arming_state |
Motors ON check state machine states.
Definition at line 43 of file autopilot_arming_yaw.h.
|
inlinestatic |
State machine to check if motors should be turned ON or OFF.
The motors start/stop when pushing the yaw stick without throttle until MOTOR_ARMING_DELAY is reached. An intermediate state prevents oscillating between ON and OFF while keeping the stick pushed. The stick must return to a neutral position before starting/stoping again.
Definition at line 83 of file autopilot_arming_yaw.h.
References AP_MODE_KILL, autopilot_check_motor_status, autopilot_mode, autopilot_motors_on, autopilot_motors_on_counter, MOTOR_ARMING_DELAY, PITCH_STICK_CENTERED, ROLL_STICK_CENTERED, STATUS_INITIALISE_RC, STATUS_M_OFF_STICK_PUSHED, STATUS_M_ON_STICK_PUSHED, STATUS_MOTORS_AUTOMATICALLY_OFF, STATUS_MOTORS_AUTOMATICALLY_OFF_SAFETY_WAIT, STATUS_MOTORS_OFF, STATUS_MOTORS_ON, STATUS_START_MOTORS, STATUS_STOP_MOTORS, THROTTLE_STICK_DOWN, YAW_STICK_CENTERED, and YAW_STICK_PUSHED.
|
inlinestatic |
Definition at line 59 of file autopilot_arming_yaw.h.
References autopilot_check_motor_status, autopilot_motors_on_counter, and STATUS_INITIALISE_RC.
|
inlinestatic |
Update the status of the check_motors state machine.
Definition at line 68 of file autopilot_arming_yaw.h.
References autopilot_check_motor_status, STATUS_MOTORS_AUTOMATICALLY_OFF, and STATUS_MOTORS_ON.
enum arming_state autopilot_check_motor_status |
Definition at line 56 of file autopilot_arming_yaw.h.
Referenced by autopilot_arming_check_motors_on(), autopilot_arming_init(), and autopilot_arming_set().
uint32_t autopilot_motors_on_counter |
Definition at line 55 of file autopilot_arming_yaw.h.
Referenced by autopilot_arming_check_motors_on(), and autopilot_arming_init().