34 #include "generated/airframe.h"
36 #if APOGEE_USE_MPU9150
43 #if !defined IMU_GYRO_P_SIGN & !defined IMU_GYRO_Q_SIGN & !defined IMU_GYRO_R_SIGN
44 #define IMU_GYRO_P_SIGN 1
45 #define IMU_GYRO_Q_SIGN 1
46 #define IMU_GYRO_R_SIGN 1
48 #if !defined IMU_ACCEL_X_SIGN & !defined IMU_ACCEL_Y_SIGN & !defined IMU_ACCEL_Z_SIGN
49 #define IMU_ACCEL_X_SIGN 1
50 #define IMU_ACCEL_Y_SIGN 1
51 #define IMU_ACCEL_Z_SIGN 1
59 #if !defined IMU_GYRO_P_SENS & !defined IMU_GYRO_Q_SENS & !defined IMU_GYRO_R_SENS
61 #define IMU_GYRO_P_SENS 2.17953
62 #define IMU_GYRO_P_SENS_NUM 18271
63 #define IMU_GYRO_P_SENS_DEN 8383
64 #define IMU_GYRO_Q_SENS 2.17953
65 #define IMU_GYRO_Q_SENS_NUM 18271
66 #define IMU_GYRO_Q_SENS_DEN 8383
67 #define IMU_GYRO_R_SENS 2.17953
68 #define IMU_GYRO_R_SENS_NUM 18271
69 #define IMU_GYRO_R_SENS_DEN 8383
71 #if !defined IMU_GYRO_P_NEUTRAL & !defined IMU_GYRO_Q_NEUTRAL & !defined IMU_GYRO_R_NEUTRAL
72 #define IMU_GYRO_P_NEUTRAL 0
73 #define IMU_GYRO_Q_NEUTRAL 0
74 #define IMU_GYRO_R_NEUTRAL 0
82 #if !defined IMU_ACCEL_X_SENS & !defined IMU_ACCEL_Y_SENS & !defined IMU_ACCEL_Z_SENS
84 #define IMU_ACCEL_X_SENS 2.4525
85 #define IMU_ACCEL_X_SENS_NUM 981
86 #define IMU_ACCEL_X_SENS_DEN 400
87 #define IMU_ACCEL_Y_SENS 2.4525
88 #define IMU_ACCEL_Y_SENS_NUM 981
89 #define IMU_ACCEL_Y_SENS_DEN 400
90 #define IMU_ACCEL_Z_SENS 2.4525
91 #define IMU_ACCEL_Z_SENS_NUM 981
92 #define IMU_ACCEL_Z_SENS_DEN 400
94 #if !defined IMU_ACCEL_X_NEUTRAL & !defined IMU_ACCEL_Y_NEUTRAL & !defined IMU_ACCEL_Z_NEUTRAL
95 #define IMU_ACCEL_X_NEUTRAL 0
96 #define IMU_ACCEL_Y_NEUTRAL 0
97 #define IMU_ACCEL_Z_NEUTRAL 0
102 #if APOGEE_USE_MPU9150
114 #endif // IMU_APOGEE_H
void imu_apogee_downlink_raw(void)
void imu_apogee_periodic(void)
void imu_apogee_event(void)
Inertial Measurement Unit interface.
Driver for the MPU-60X0 using I2C.
Driver for the AKM AK8975 magnetometer.
void imu_apogee_init(void)
struct ImuApogee imu_apogee