36 #include "generated/airframe.h"
44 #if !defined IMU_GYRO_P_SIGN & !defined IMU_GYRO_Q_SIGN & !defined IMU_GYRO_R_SIGN
45 #define IMU_GYRO_P_SIGN 1
46 #define IMU_GYRO_Q_SIGN 1
47 #define IMU_GYRO_R_SIGN 1
49 #if !defined IMU_ACCEL_X_SIGN & !defined IMU_ACCEL_Y_SIGN & !defined IMU_ACCEL_Z_SIGN
50 #define IMU_ACCEL_X_SIGN 1
51 #define IMU_ACCEL_Y_SIGN 1
52 #define IMU_ACCEL_Z_SIGN 1
54 #if !defined IMU_MAG_X_SIGN & !defined IMU_MAG_Y_SIGN & !defined IMU_MAG_Z_SIGN
55 #define IMU_MAG_X_SIGN 1
56 #define IMU_MAG_Y_SIGN 1
57 #define IMU_MAG_Z_SIGN 1
65 #if !defined IMU_GYRO_P_SENS & !defined IMU_GYRO_Q_SENS & !defined IMU_GYRO_R_SENS
67 #define IMU_GYRO_P_SENS 0.5454
68 #define IMU_GYRO_P_SENS_NUM 2727
69 #define IMU_GYRO_P_SENS_DEN 5000
70 #define IMU_GYRO_Q_SENS 0.5454
71 #define IMU_GYRO_Q_SENS_NUM 2727
72 #define IMU_GYRO_Q_SENS_DEN 5000
73 #define IMU_GYRO_R_SENS 0.5454
74 #define IMU_GYRO_R_SENS_NUM 2727
75 #define IMU_GYRO_R_SENS_DEN 5000
77 #if !defined IMU_GYRO_P_NEUTRAL & !defined IMU_GYRO_Q_NEUTRAL & !defined IMU_GYRO_R_NEUTRAL
78 #define IMU_GYRO_P_NEUTRAL 0
79 #define IMU_GYRO_Q_NEUTRAL 0
80 #define IMU_GYRO_R_NEUTRAL 0
88 #if !defined IMU_ACCEL_X_SENS & !defined IMU_ACCEL_Y_SENS & !defined IMU_ACCEL_Z_SENS
90 #define IMU_ACCEL_X_SENS 0.9197
91 #define IMU_ACCEL_X_SENS_NUM 9197
92 #define IMU_ACCEL_X_SENS_DEN 10000
93 #define IMU_ACCEL_Y_SENS 0.9197
94 #define IMU_ACCEL_Y_SENS_NUM 9197
95 #define IMU_ACCEL_Y_SENS_DEN 10000
96 #define IMU_ACCEL_Z_SENS 0.9197
97 #define IMU_ACCEL_Z_SENS_NUM 9197
98 #define IMU_ACCEL_Z_SENS_DEN 10000
100 #if !defined IMU_ACCEL_X_NEUTRAL & !defined IMU_ACCEL_Y_NEUTRAL & !defined IMU_ACCEL_Z_NEUTRAL
101 #define IMU_ACCEL_X_NEUTRAL 32768
102 #define IMU_ACCEL_Y_NEUTRAL 32768
103 #define IMU_ACCEL_Z_NEUTRAL 32768
106 #ifndef IMU_KROOZ_ACCEL_AVG_FILTER
107 #define IMU_KROOZ_ACCEL_AVG_FILTER 15
137 #define ImuEvent imu_krooz_event
139 #endif // IMU_KROOZ_H
struct Int32Vect3 accel_filtered
struct spi_transaction ad7689_trans
SPI transaction structure.
void imu_krooz_event(void)
struct Int32Rates rates_sum
Architecture independent SPI (Serial Peripheral Interface) API.
volatile uint8_t ad7689_spi_rx_buffer[2]
struct Uint8Vect3 meas_nb_acc
struct ImuKrooz imu_krooz
Inertial Measurement Unit interface.
Driver for the MPU-60X0 using I2C.
struct Int32Vect3 accel_sum
void imu_krooz_downlink_raw(void)
volatile uint8_t ad7689_spi_tx_buffer[2]