28#include "generated/airframe.h"
32#if STABILIZATION_INDI_ALLOCATION_PSEUDO_INVERSE
33#error "You need to use WLS control allocation for this module"
36#ifndef INDI_FUNCTIONS_RC_CHANNEL
37#error "You need to define an RC channel to switch between simple and advanced scheduling"
51#ifdef STABILIZATION_INDI_G1
112 Bound(airspeed, 0.0, 30.0);
113 float airspeed2 = airspeed*airspeed;
126 Bound(
g1g2[0][2], -30.0/1000, -2.0/1000);
130 if(airspeed > 12.0) {
146#ifdef INDI_THRUST_ON_PITCH_EFF
static void eff_scheduling_periodic_a(void)
static float g1g2_hover[INDI_OUTPUTS][INDI_NUM_ACT]
static float g2_both[INDI_NUM_ACT]
void eff_scheduling_cyfoam_periodic(void)
Periodic function that interpolates between gain sets depending on the scheduling variable.
void eff_scheduling_cyfoam_init(void)
Initialises periodic loop;.
static float g1g2_forward[INDI_OUTPUTS][INDI_NUM_ACT]
static void eff_scheduling_periodic_b(void)
void float_eulers_of_quat_zxy(struct FloatEulers *e, struct FloatQuat *q)
euler rotation 'ZXY' This rotation order is useful if you need 90 deg pitch
static struct FloatQuat * stateGetNedToBodyQuat_f(void)
Get vehicle body attitude quaternion (float).
static float stateGetAirspeed_f(void)
Get airspeed (float).
struct FloatEulers eulers_zxy
state eulers in zxy order
struct RadioControl radio_control
Generic interface for radio control modules.
pprz_t values[RADIO_CONTROL_NB_CHANNEL]
Horizontal guidance for rotorcrafts.
struct Stabilization stabilization
float transition_ratio
transition percentage for hybrids (0.: hover; 1.: forward)
float * Bwls[INDI_OUTPUTS]
struct Indi_gains indi_gains
float g1g2[INDI_OUTPUTS][INDI_NUM_ACT]
float actuator_state_filt_vect[INDI_NUM_ACT]
API to get/set the generic vehicle states.
signed char int8_t
Typedef defining 8 bit char type.