35 #define CONSTANT_ALT_FILTER 1
40 #define OF_THRUST_BIAS 0
42 #define OF_USE_GYROS 1
44 #define PREDICT_GYROS 0
46 #if CONSTANT_ALT_FILTER == 1
52 #define OF_ANGLE_IND 1
54 #define OF_ANGLE_DOT_IND 3
56 #define N_MEAS_OF_KF 3
59 #define N_MEAS_OF_KF 2
62 #define OF_THETA_IND -1
65 #if OF_THRUST_BIAS == 0
66 #define N_STATES_OF_KF 4
67 #define OF_THRUST_BIAS_IND -1
70 #define N_STATES_OF_KF 5
71 #define OF_THRUST_BIAS_IND 4
75 #define N_STATES_OF_KF 6
77 #define OF_ANGLE_IND 1
79 #define OF_THETA_IND 3
81 #define OF_ANGLE_DOT_IND 5
85 #define OF_THRUST_BIAS_IND -1
90 #define N_MEAS_OF_KF 4
93 #define N_MEAS_OF_KF 3
97 #define OF_Z_DOT_IND -1
99 #if OF_THRUST_BIAS == 0
100 #define N_STATES_OF_KF 5
101 #define OF_THRUST_BIAS_IND -1
103 #define N_STATES_OF_KF 6
104 #define OF_THRUST_BIAS_IND 5
108 #define OF_ANGLE_IND 1
109 #define OF_ANGLE_DOT_IND 2
111 #define OF_Z_DOT_IND 4
113 #define OF_THETA_IND -1
117 #if OF_USE_GYROS == 1
119 #define N_MEAS_OF_KF 3
122 #define N_MEAS_OF_KF 2
132 #define OF_LAT_FLOW_IND 0
133 #define OF_DIV_FLOW_IND 1
134 #define OF_RATE_IND 2
135 #if OF_USE_GYROS == 1
136 #define OF_LAT_FLOW_X_IND 3
138 #define OF_LAT_FLOW_X_IND 2
144 #define USE_VELOCITY 2
Dispatcher to register actual AHRS implementations.
Interface to align the AHRS via low-passed measurements at startup.
Quaternion complementary filter (fixed-point).
Integrated Navigation System interface.
float OF_X[N_STATES_OF_KF]
void ins_flow_update(void)