29 #ifndef AHRS_MADGWICK_H
30 #define AHRS_MADGWICK_H
struct AhrsMadgwick ahrs_madgwick
Dispatcher to register actual AHRS implementations.
struct FloatRates bias
Gyro bias (from alignment)
void ahrs_madgwick_align(struct FloatRates *lp_gyro, struct FloatVect3 *lp_accel)
bool is_aligned
aligned flag
struct FloatQuat quat
Estimated attitude (quaternion)
Paparazzi floating point algebra.
void ahrs_madgwick_propagate(struct FloatRates *gyro, float dt)
struct FloatRates rates
Measured gyro rates.
bool reset
flag to request reset/reinit the filter
void ahrs_madgwick_set_body_to_imu_quat(struct FloatQuat *q_b2i)
void ahrs_madgwick_init(void)
struct FloatVect3 accel
Measured accelerometers.
void ahrs_madgwick_update_accel(struct FloatVect3 *accel)
Generic orientation representation and conversions.
Madgwick filter structure.
struct OrientationReps body_to_imu
body_to_imu rotation