Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Module that interpolates between gain sets, depending on the scheduling variable. More...
#include "generated/airframe.h"
#include "firmwares/rotorcraft/stabilization/stabilization_attitude_common_int.h"
Go to the source code of this file.
Functions | |
void | gain_scheduling_init (void) |
Initialises periodic loop;. More... | |
void | gain_scheduling_periodic (void) |
Periodic function that interpolates between gain sets depending on the scheduling variable. More... | |
void | set_gainset (int gainset) |
Variables | |
struct Int32AttitudeGains | gainlibrary [NUMBER_OF_GAINSETS] |
Module that interpolates between gain sets, depending on the scheduling variable.
Definition in file gain_scheduling.h.
void gain_scheduling_init | ( | void | ) |
Initialises periodic loop;.
Definition at line 48 of file gain_scheduling.c.
References gainlibrary, Int32AttitudeGains::i, and stabilization_gains.
void gain_scheduling_periodic | ( | void | ) |
Periodic function that interpolates between gain sets depending on the scheduling variable.
If the variable has not changed, keep the same gain set.
Definition at line 79 of file gain_scheduling.c.
References BFP_OF_REAL, FLOAT_OF_BFP, gainlibrary, Int32AttitudeGains::i, INT32_RATIO_FRAC, scheduling_points, SCHEDULING_VARIABLE_FRAC, set_gainset(), and stabilization_gains.
void set_gainset | ( | int | gainset | ) |
Definition at line 128 of file gain_scheduling.c.
References gainlibrary, and stabilization_gains.
Referenced by gain_scheduling_periodic().
struct Int32AttitudeGains gainlibrary[NUMBER_OF_GAINSETS] |
Definition at line 43 of file gain_scheduling.c.
Referenced by gain_scheduling_init(), gain_scheduling_periodic(), and set_gainset().