27 #include "generated/airframe.h"
36 #define IMU_QUALITY_ASSESSMENT_FILTER_ORDER 2
39 #define PEAK_TRACKER(_Value, _Peak) { \
40 if ( (_Value) > (_Peak) ) \
42 else if ( -(_Value) > (_Peak) ) \
75 fx[0] =
B[0] * lx[0] +
B[1] * lx[1] +
B[2] * lx[2] -
A[1] * fx[1] -
A[2] * fx[2];
Main include for ABI (AirBorneInterface).
#define ABI_BROADCAST
Broadcast address.
struct imu_accel_t * imu_get_accel(uint8_t sender_id, bool create)
Find or create the accel in the imu structure.
Inertial Measurement Unit interface.
struct Int32Vect3 unscaled
Last unscaled values in sensor frame.
struct Int32Vect3 scaled
Last scaled values in body frame.
struct Int32Vect3 scale[2]
Scaling, first is numerator and second denominator.
struct Int32Vect3 neutral
Neutral values, compensation on unscaled->scaled.
void imu_quality_assessment_init(void)
#define PEAK_TRACKER(_Value, _Peak)
struct imu_quality_assessment_data_struct imu_quality_assessment_data
void imu_quality_assessment_periodic(void)
#define IMU_QUALITY_ASSESSMENT_FILTER_ORDER
int int32_t
Typedef defining 32 bit int type.