29 #include "generated/airframe.h"
35 #ifndef VERTICAL_CTRL_MODULE_AGL_ID
36 #define VERTICAL_CTRL_MODULE_AGL_ID ABI_BROADCAST
40 #ifndef VERTICAL_CTRL_MODULE_PGAIN
41 #define VERTICAL_CTRL_MODULE_PGAIN 1.0
44 #ifndef VERTICAL_CTRL_MODULE_IGAIN
45 #define VERTICAL_CTRL_MODULE_IGAIN 0.01
Event structure to store callbacks in a linked list.
struct VerticalCtrlDemo v_ctrl
void vertical_ctrl_module_init(void)
Main include for ABI (AirBorneInterface).
void guidance_v_module_enter(void)
void vertical_ctrl_module_run(bool_t in_flight)
void guidance_v_module_init(void)
#define VERTICAL_CTRL_MODULE_IGAIN
void guidance_v_module_run(bool_t in_flight)
#define VERTICAL_CTRL_MODULE_PGAIN
General stabilization interface for rotorcrafts.
static void vertical_ctrl_agl_cb(uint8_t sender_id, float distance)
Callback function of the ground altitude.
int32_t stabilization_cmd[COMMANDS_NB]
Stabilization commands.
#define VERTICAL_CTRL_MODULE_AGL_ID
static abi_event agl_ev
The altitude ABI event.