27 #define AUTOPILOT_CORE_AP_C
39 #include "generated/settings.h"
45 autopilot_core_ap_init();
57 autopilot_core_ap_periodic_task();
83 autopilot_core_ap_set_mode(new_autopilot_mode);
struct pprz_autopilot autopilot
Global autopilot structure.
bool autopilot_in_flight(void)
get in_flight flag
Core autopilot interface common to all firmwares.
bool motors_on
motor status
bool ground_detected
automatic detection of landing
bool detect_ground_once
enable automatic detection of ground (one shot)
bool kill_throttle
allow autopilot to use throttle
uint8_t mode
current autopilot mode
Arming procedure for rotorcraft Several options can be selected:
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.
static void autopilot_arming_init(void)
Hardware independent code for commands handling.
void autopilot_generated_SetModeHandler(float mode)
AP mode setting handler.
void autopilot_generated_periodic(void)
void autopilot_generated_set_mode(uint8_t new_autopilot_mode)
void autopilot_generated_init(void)
void autopilot_generated_on_rc_frame(void)
void autopilot_generated_set_motors_on(bool motors_on)
Hardware independent API for actuators (servos, motor controllers).
Generic interface for radio control modules.
Autopilot generated implementation Calls the code generated from autopilot XML file.
#define AP_MODE_KILL
Static autopilot modes.
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...
Periodic telemetry system header (includes downlink utility and generated code).
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.