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
79 autopilot_core_ap_set_mode(new_autopilot_mode);
94 #ifdef SetAutoCommandsFromRC
96 #elif defined RADIO_YAW && defined COMMAND_YAW
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.
int32_t current
Supply current in milliAmpere.
void autopilot_generated_init(void)
#define PPRZ_MUTEX_LOCK(_mtx)
volatile bool inter_mcu_received_ap
void autopilot_generated_on_rc_frame(void)
struct fbw_state * fbw_state
struct pprz_autopilot autopilot
Global autopilot structure.
struct ap_state * ap_state
float energy
Energy consumption (mAh) This is the ap copy of the measurement from fbw FIXME use electrical module ...
uint16_t vsupply
Supply voltage in deciVolt.
Hardware independent API for actuators (servos, motor controllers).
void autopilot_generated_set_mode(uint8_t new_autopilot_mode)
void autopilot_generated_set_motors_on(bool motors_on)
static void copy_from_to_fbw(void)
Hardware independent code for commands handling.
Core autopilot interface common to all firmwares.
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...
#define PPRZ_MUTEX_UNLOCK(_mtx)
uint8_t mode
current autopilot mode
void autopilot_generated_periodic(void)