Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Arm the motors using a switch. More...
#include "autopilot_arming_common.h"
Go to the source code of this file.
Functions | |
static void | autopilot_arming_init (void) |
static void | autopilot_arming_set (bool motors_on) |
static void | autopilot_arming_check_motors_on (void) |
State machine to check if motors should be turned ON or OFF using the kill switch. More... | |
Variables | |
enum arming_state | autopilot_arming_state |
bool | autopilot_unarmed_in_auto |
Arm the motors using a switch.
Definition in file autopilot_arming_switch.h.
enum arming_state |
Definition at line 38 of file autopilot_arming_switch.h.
|
inlinestatic |
State machine to check if motors should be turned ON or OFF using the kill switch.
If kill switch is off during startup (unkilled), you need to kill again first, then unkill to start. Also to start the motors, throttle needs to be down, other sticks centered, AHRS aligned and you need be in manual mode.
Definition at line 79 of file autopilot_arming_switch.h.
References AP_MODE_FAILSAFE, AP_MODE_KILL, autopilot_arming_motors_on(), autopilot_arming_state, autopilot_get_mode(), autopilot_unarmed_in_auto, kill_switch_is_on(), MODE_MANUAL, rc_attitude_sticks_centered(), STATE_MOTORS_ON, STATE_STARTABLE, STATE_UNINIT, STATE_WAITING, and THROTTLE_STICK_DOWN.
Referenced by autopilot_generated_on_rc_frame(), and autopilot_static_on_rc_frame().
|
inlinestatic |
Definition at line 48 of file autopilot_arming_switch.h.
References autopilot_arming_state, autopilot_unarmed_in_auto, and STATE_UNINIT.
Referenced by autopilot_generated_init(), and autopilot_static_init().
|
inlinestatic |
Definition at line 54 of file autopilot_arming_switch.h.
References AP_MODE_FAILSAFE, AP_MODE_KILL, autopilot_arming_state, autopilot_get_mode(), autopilot_unarmed_in_auto, MODE_MANUAL, STATE_MOTORS_ON, and STATE_STARTABLE.
Referenced by autopilot_generated_set_motors_on(), and autopilot_static_set_motors_on().
enum arming_state autopilot_arming_state |
Definition at line 1 of file autopilot_arming_switch.h.
Referenced by autopilot_arming_check_motors_on(), autopilot_arming_init(), and autopilot_arming_set().
bool autopilot_unarmed_in_auto |
Definition at line 46 of file autopilot_arming_switch.h.
Referenced by autopilot_arming_check_motors_on(), autopilot_arming_init(), and autopilot_arming_set().