Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
autopilot_arming_yaw.h File Reference
+ Include dependency graph for autopilot_arming_yaw.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define AUTOPILOT_MOTOR_ON_TIME   40
 

Enumerations

enum  arming_state {
  STATE_UNINIT, STATE_WAITING, STATE_STARTABLE, STATE_MOTORS_ON,
  STATUS_MOTORS_OFF, STATUS_M_OFF_STICK_PUSHED, STATUS_START_MOTORS, STATUS_MOTORS_ON,
  STATUS_M_ON_STICK_PUSHED, STATUS_STOP_MOTORS
}
 

Functions

static void autopilot_arming_init (void)
 
static void autopilot_arming_set (bool_t 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
 

Macro Definition Documentation

#define AUTOPILOT_MOTOR_ON_TIME   40

Definition at line 28 of file autopilot_arming_yaw.h.

Referenced by autopilot_arming_check_motors_on().

Enumeration Type Documentation

Enumerator
STATE_UNINIT 
STATE_WAITING 
STATE_STARTABLE 
STATE_MOTORS_ON 
STATUS_MOTORS_OFF 
STATUS_M_OFF_STICK_PUSHED 
STATUS_START_MOTORS 
STATUS_MOTORS_ON 
STATUS_M_ON_STICK_PUSHED 
STATUS_STOP_MOTORS 

Definition at line 31 of file autopilot_arming_yaw.h.

Function Documentation

static void autopilot_arming_check_motors_on ( void  )
inlinestatic

State machine to check if motors should be turned ON or OFF.

The motors start/stop when pushing the yaw stick without throttle during a given time 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 65 of file autopilot_arming_yaw.h.

References AP_MODE_KILL, autopilot_check_motor_status, autopilot_mode, AUTOPILOT_MOTOR_ON_TIME, autopilot_motors_on, autopilot_motors_on_counter, FALSE, STATUS_M_OFF_STICK_PUSHED, STATUS_M_ON_STICK_PUSHED, STATUS_MOTORS_OFF, STATUS_MOTORS_ON, STATUS_START_MOTORS, STATUS_STOP_MOTORS, THROTTLE_STICK_DOWN, TRUE, and YAW_STICK_PUSHED.

static void autopilot_arming_init ( void  )
inlinestatic
static void autopilot_arming_set ( bool_t  motors_on)
inlinestatic

Update the status of the check_motors state machine.

Definition at line 52 of file autopilot_arming_yaw.h.

References autopilot_check_motor_status, STATUS_MOTORS_OFF, and STATUS_MOTORS_ON.

Variable Documentation

enum arming_state autopilot_check_motor_status
uint32_t autopilot_motors_on_counter