32#ifndef NUMBER_OF_GAINSETS
33#error You must define the number of gainsets to use this module!
36#ifndef SCHEDULING_VARIABLE_FRAC
37#define SCHEDULING_VARIABLE_FRAC 0
38#pragma message "SCHEDULING_VARIABLE_FRAC not specified!"
53#define INT32_RATIO_FRAC 12
98#if NUMBER_OF_GAINSETS > 1
#define SCHEDULING_VARIABLE_FRAC
float scheduling_points[NUMBER_OF_GAINSETS]
void gain_scheduling_periodic(void)
Periodic function that interpolates between gain sets depending on the scheduling variable.
struct Int32AttitudeGains gainlibrary[NUMBER_OF_GAINSETS]
void set_gainset(int gainset)
void gain_scheduling_init(void)
Initialises periodic loop;.
Module that interpolates between gain sets, depending on the scheduling variable.
#define FLOAT_OF_BFP(_vbfp, _frac)
#define BFP_OF_REAL(_vr, _frac)
Paparazzi fixed point algebra.
Generic interface for radio control modules.
struct Int32AttitudeGains stabilization_gains
float g1[INDI_OUTPUTS][INDI_NUM_ACT]
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.