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).
struct abi_struct abi_event
Core autopilot interface common to all firmwares.
PRINT_CONFIG_VAR(ONELOOP_ANDI_FILT_CUTOFF)
void vertical_ctrl_module_run(void)
Run the vertical optical flow hover module.
void vertical_ctrl_agl_cb(uint8_t sender_id, uint32_t stamp, float distance)
Function definitions Callback function of the ground altitude.
static abi_event agl_ev
The altitude ABI event.
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.
General stabilization interface for rotorcrafts.
struct ThrustSetpoint th_sp_from_thrust_i(int32_t thrust, uint8_t axis)
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
#define VERTICAL_CTRL_MODULE_AGL_ID
#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.