29 #include "generated/airframe.h"
37 #ifndef VERTICAL_CTRL_MODULE_AGL_ID
38 #define VERTICAL_CTRL_MODULE_AGL_ID ABI_BROADCAST
42 #ifndef VERTICAL_CTRL_MODULE_PGAIN
43 #define VERTICAL_CTRL_MODULE_PGAIN 1.0
46 #ifndef VERTICAL_CTRL_MODULE_IGAIN
47 #define VERTICAL_CTRL_MODULE_IGAIN 0.01
Main include for ABI (AirBorneInterface).
Event structure to store callbacks in a linked list.
Core autopilot interface common to all firmwares.
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
void guidance_h_mode_changed(uint8_t new_mode)
struct StabilizationSetpoint guidance_h_run(bool in_flight)
Horizontal guidance for rotorcrafts.
#define GUIDANCE_H_MODE_HOVER
struct Stabilization stabilization
void stabilization_run(bool in_flight, struct StabilizationSetpoint *sp, struct ThrustSetpoint *thrust, int32_t *cmd)
Call default stabilization control.
struct ThrustSetpoint th_sp_from_thrust_i(int32_t thrust, uint8_t axis)
General stabilization interface for rotorcrafts.
int32_t cmd[COMMANDS_NB]
output command vector, range from [-MAX_PPRZ:MAX_PPRZ] (store for messages)
Thrust setpoint // TODO to a setpoint header Structure to store the desired thrust vector with differ...
void vertical_ctrl_module_init(void)
static void vertical_ctrl_agl_cb(uint8_t sender_id, uint32_t stamp, float distance)
Callback function of the ground altitude.
#define VERTICAL_CTRL_MODULE_IGAIN
void guidance_module_enter(void)
Entering the module (user switched to module)
void guidance_module_run(bool in_flight)
struct VerticalCtrlDemo v_ctrl
static struct ThrustSetpoint vertical_ctrl_module_run(bool in_flight)
#define VERTICAL_CTRL_MODULE_AGL_ID
static abi_event agl_ev
The altitude ABI event.
#define VERTICAL_CTRL_MODULE_PGAIN
int int32_t
Typedef defining 32 bit int type.
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.