34 #include "generated/airframe.h"
41 #if !defined IMU_GYRO_P_SIGN & !defined IMU_GYRO_Q_SIGN & !defined IMU_GYRO_R_SIGN
42 #define IMU_GYRO_P_SIGN 1
43 #define IMU_GYRO_Q_SIGN 1
44 #define IMU_GYRO_R_SIGN 1
46 #if !defined IMU_ACCEL_X_SIGN & !defined IMU_ACCEL_Y_SIGN & !defined IMU_ACCEL_Z_SIGN
47 #define IMU_ACCEL_X_SIGN 1
48 #define IMU_ACCEL_Y_SIGN 1
49 #define IMU_ACCEL_Z_SIGN 1
51 #if !defined IMU_MAG_X_SIGN & !defined IMU_MAG_Y_SIGN & !defined IMU_MAG_Z_SIGN
52 #define IMU_MAG_X_SIGN 1
53 #define IMU_MAG_Y_SIGN 1
54 #define IMU_MAG_Z_SIGN 1
62 #if !defined IMU_GYRO_P_SENS & !defined IMU_GYRO_Q_SENS & !defined IMU_GYRO_R_SENS
64 #define IMU_GYRO_P_SENS 0.5454
65 #define IMU_GYRO_P_SENS_NUM 2727
66 #define IMU_GYRO_P_SENS_DEN 5000
67 #define IMU_GYRO_Q_SENS 0.5454
68 #define IMU_GYRO_Q_SENS_NUM 2727
69 #define IMU_GYRO_Q_SENS_DEN 5000
70 #define IMU_GYRO_R_SENS 0.5454
71 #define IMU_GYRO_R_SENS_NUM 2727
72 #define IMU_GYRO_R_SENS_DEN 5000
74 #if !defined IMU_GYRO_P_NEUTRAL & !defined IMU_GYRO_Q_NEUTRAL & !defined IMU_GYRO_R_NEUTRAL
75 #define IMU_GYRO_P_NEUTRAL 0
76 #define IMU_GYRO_Q_NEUTRAL 0
77 #define IMU_GYRO_R_NEUTRAL 0
85 #if !defined IMU_ACCEL_X_SENS & !defined IMU_ACCEL_Y_SENS & !defined IMU_ACCEL_Z_SENS
87 #define IMU_ACCEL_X_SENS 0.6131
88 #define IMU_ACCEL_X_SENS_NUM 6131
89 #define IMU_ACCEL_X_SENS_DEN 10000
90 #define IMU_ACCEL_Y_SENS 0.6131
91 #define IMU_ACCEL_Y_SENS_NUM 6131
92 #define IMU_ACCEL_Y_SENS_DEN 10000
93 #define IMU_ACCEL_Z_SENS 0.6131
94 #define IMU_ACCEL_Z_SENS_NUM 6131
95 #define IMU_ACCEL_Z_SENS_DEN 10000
97 #if !defined IMU_ACCEL_X_NEUTRAL & !defined IMU_ACCEL_Y_NEUTRAL & !defined IMU_ACCEL_Z_NEUTRAL
98 #define IMU_ACCEL_X_NEUTRAL 0
99 #define IMU_ACCEL_Y_NEUTRAL 0
100 #define IMU_ACCEL_Z_NEUTRAL 0
103 #ifndef IMU_KROOZ_ACCEL_AVG_FILTER
104 #define IMU_KROOZ_ACCEL_AVG_FILTER 15
126 #endif // IMU_KROOZ_H
struct Int32Vect3 accel_filtered
struct Int32Rates rates_sum
void imu_krooz_downlink_raw(void)
void imu_krooz_periodic(void)
Inertial Measurement Unit interface.
Driver for the MPU-60X0 using I2C.
struct Int32Vect3 accel_sum
void imu_krooz_init(void)
void imu_krooz_event(void)
struct ImuKrooz imu_krooz