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"
41 static float g1g2_forward[INDI_OUTPUTS][INDI_NUM_ACT] = FWD_G1;
51 #ifdef STABILIZATION_INDI_G1
52 static float g1g2_hover[INDI_OUTPUTS][INDI_NUM_ACT] = STABILIZATION_INDI_G1;
55 STABILIZATION_INDI_G1_ROLL,
56 STABILIZATION_INDI_G1_PITCH,
57 STABILIZATION_INDI_G1_YAW,
58 STABILIZATION_INDI_G1_THRUST
62 static float g2_both[INDI_NUM_ACT] = STABILIZATION_INDI_G2;
69 for (i = 0; i < INDI_OUTPUTS; i++) {
70 for (j = 0; j < INDI_NUM_ACT; j++) {
87 for (i = 0; i < INDI_OUTPUTS; i++) {
88 for (j = 0; j < INDI_NUM_ACT; j++) {
static float g1g2_hover[INDI_OUTPUTS][INDI_NUM_ACT]
static float g2_both[INDI_NUM_ACT]
void eff_scheduling_generic_periodic(void)
Periodic function that interpolates between gain sets depending on the scheduling variable.
void eff_scheduling_generic_init(void)
Initialises periodic loop;.
static float g1g2_forward[INDI_OUTPUTS][INDI_NUM_ACT]
Generic interface for radio control modules.
Horizontal guidance for rotorcrafts.
struct Stabilization stabilization
float transition_ratio
transition percentage for hybrids (0.: hover; 1.: forward)
float g1g2[INDI_OUTPUTS][INDI_NUM_ACT]
API to get/set the generic vehicle states.
signed char int8_t
Typedef defining 8 bit char type.