30 #include "generated/airframe.h"
32 #define INDI_SCHEDULING_LOWER_BOUND_G1 0.0001
36 static float g_forward[3] = {STABILIZATION_INDI_FORWARD_G1_P, STABILIZATION_INDI_FORWARD_G1_Q, STABILIZATION_INDI_FORWARD_G1_R};
38 static float g_hover[3] = {STABILIZATION_INDI_G1_P, STABILIZATION_INDI_G1_Q, STABILIZATION_INDI_G1_R};
72 float ratio_spec_force = 0.0;
74 Bound(airspeed, 8.0, 20.0);
75 ratio_spec_force = (airspeed-8.0) / 12.0;
77 + GUIDANCE_INDI_SPECIFIC_FORCE_GAIN_FWD * ratio_spec_force;
static struct FloatEulers * stateGetNedToBodyEulers_f(void)
Get vehicle body attitude euler angles (float).
static float stateGetAirspeed_f(void)
Get airspeed (float).
float guidance_indi_specific_force_gain
A guidance mode based on Incremental Nonlinear Dynamic Inversion Come to ICRA2016 to learn more!
Horizontal guidance for rotorcrafts.
void ctrl_eff_scheduling_periodic(void)
Periodic function that interpolates between gain sets depending on the scheduling variable.
#define INDI_SCHEDULING_LOWER_BOUND_G1
static float g_forward[3]
void ctrl_eff_scheduling_init(void)
Initialises periodic loop;.
struct IndiVariables indi
API to get/set the generic vehicle states.
int int32_t
Typedef defining 32 bit int type.