29 #ifndef AUTOPILOT_ARMING_THROTTLE_H
30 #define AUTOPILOT_ARMING_THROTTLE_H
35 #define AUTOPILOT_ARMING_DELAY 10
uint8_t autopilot_get_mode(void)
get autopilot mode
struct pprz_autopilot autopilot
Global autopilot structure.
bool autopilot_arming_motors_on(bool motors_on)
turn motors on/off during arming, not done automatically prevents takeoff with preflight checks
uint8_t arming_status
arming status
Arming procedure for rotorcraft, common definitions.
#define AP_ARMING_STATUS_THROTTLE_NOT_DOWN
#define AP_ARMING_STATUS_THROTTLE_DOWN
#define AP_ARMING_STATUS_ARMED
#define AP_ARMING_STATUS_YAW_NOT_CENTERED
#define AP_ARMING_STATUS_KILLED
#define AP_ARMING_STATUS_DISARMING
#define AP_ARMING_STATUS_ARMING
#define AP_ARMING_STATUS_ROLL_NOT_CENTERED
#define AP_ARMING_STATUS_PITCH_NOT_CENTERED
#define AP_ARMING_STATUS_NOT_MODE_MANUAL
#define AUTOPILOT_ARMING_DELAY
static void autopilot_arming_set(bool motors_on)
bool autopilot_unarmed_in_auto
uint8_t autopilot_arming_delay_counter
enum arming_throttle_state autopilot_arming_state
static void autopilot_arming_check_motors_on(void)
State machine to check if motors should be turned ON or OFF.
static void autopilot_arming_init(void)
static bool autopilot_arming_check_valid(void)
Checks all arm requirements and returns true if OK and false otherwise.
#define THROTTLE_STICK_DOWN()
#define ROLL_STICK_CENTERED()
#define PITCH_STICK_CENTERED()
#define YAW_STICK_CENTERED()
#define MODE_MANUAL
Default RC mode.
#define AP_MODE_KILL
Static autopilot modes.
Rover specific autopilot interface and initialization.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.