27 #define AUTOPILOT_CORE_AP_C
38 #include "generated/settings.h"
44 autopilot_core_ap_init();
53 autopilot_core_ap_periodic_task();
58 #if defined MCU_SPI_LINK || defined MCU_UART_LINK || defined MCU_CAN_LINK
60 #elif defined INTER_MCU && defined SINGLE_MCU
62 inter_mcu_received_ap =
true;
79 autopilot_core_ap_set_mode(new_autopilot_mode);
94 #ifdef SetAutoCommandsFromRC
96 #elif defined RADIO_YAW && defined COMMAND_YAW
struct pprz_autopilot autopilot
Global autopilot structure.
Core autopilot interface common to all firmwares.
bool motors_on
motor status
uint8_t mode
current autopilot mode
pprz_t commands[COMMANDS_NB]
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)
Autopilot generated implementation Calls the code generated from autopilot XML file.
Hardware independent API for actuators (servos, motor controllers).
struct RadioControl radio_control
Generic interface for radio control modules.
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
static pprz_t radio_control_get(uint8_t idx)
Get a radio control channel value.
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.