27 #define AUTOPILOT_CORE_AP_C
38 #include "generated/settings.h"
40 #if USE_KILL_SWITCH_FOR_MOTOR_ARMING
43 #elif USE_THROTTLE_FOR_MOTOR_ARMING
55 autopilot_core_ap_init();
67 autopilot_core_ap_periodic_task();
93 autopilot_core_ap_set_mode(new_autopilot_mode);
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.
#define AP_MODE_KILL
Static autopilot modes.
void autopilot_generated_SetModeHandler(float mode)
AP mode setting handler.
Periodic telemetry system header (includes downlink utility and generated code).
Autopilot generated implementation Calls the code generated from autopilot XML file.
void autopilot_generated_init(void)
void autopilot_generated_on_rc_frame(void)
struct pprz_autopilot autopilot
Global autopilot structure.
bool ap_ahrs_is_aligned(void)
Display descent speed in failsafe mode if needed.
Automatically arm the motors when applying throttle.
Hardware independent API for actuators (servos, motor controllers).
bool detect_ground_once
enable automatic detection of ground (one shot)
void autopilot_generated_set_mode(uint8_t new_autopilot_mode)
Arm the motors using a switch.
bool autopilot_in_flight(void)
get in_flight flag
PRINT_CONFIG_MSG("USE_INS_NAV_INIT defaulting to TRUE")
static void autopilot_arming_init(void)
void autopilot_generated_set_motors_on(bool motors_on)
Hardware independent code for commands handling.
Arm the motors by with max yaw stick.
Core autopilot interface common to all firmwares.
bool motors_on
motor status
Persistent settings interface.
static uint8_t mode
mode holds the current sonar mode mode = 0 used at high altitude, uses 16 wave patterns mode = 1 used...
bool kill_throttle
allow autopilot to use throttle
bool ground_detected
automatic detection of landing
uint8_t mode
current autopilot mode
void autopilot_generated_periodic(void)