23 #ifndef STABILIZATION_INDI
24 #define STABILIZATION_INDI
30 #define INDI_NUM_ACT 4
32 #define INDI_OUTPUTS 4
34 #define INDI_G_SCALING 1000.0
struct ReferenceSystem reference_acceleration
void stabilization_indi_set_earth_cmd_i(struct Int32Vect2 *cmd, int32_t heading)
Set attitude setpoint from command in earth axes.
struct Int32Quat stab_att_sp_quat
with INT32_QUAT_FRAC
void stabilization_indi_set_rpy_setpoint_i(struct Int32Eulers *rpy)
Set attitude quaternion setpoint from rpy.
void stabilization_indi_run(bool in_flight, bool rate_control)
runs stabilization indi
void stabilization_indi_set_failsafe_setpoint(void)
Function that calculates the failsafe setpoint.
Common data structures shared by euler and quaternion int implementations.
struct Int32Eulers stab_att_sp_euler
with INT32_ANGLE_FRAC
void stabilization_indi_enter(void)
Function that resets important values upon engaging INDI.
void stabilization_indi_read_rc(bool in_flight, bool in_carefree, bool coordinated_turn)
This function reads rc commands.
Rotorcraft attitude reference generation.
float g1g2[INDI_OUTPUTS][INDI_NUM_ACT]
void stabilization_indi_init(void)
Function that initializes important values upon engaging INDI.