[imu] suggest to add default MAG neutral to pass some nps compilation

when MAG is not used in real ap target but still needed for nps
This commit is contained in:
Gautier Hattenberger
2019-10-14 22:58:19 +02:00
parent 9e01d190fa
commit 95a081c100
+6
View File
@@ -92,6 +92,12 @@ extern void imu_scale_mag(struct Imu *_imu);
#define IMU_ACCEL_Z_NEUTRAL 0
#endif
#if !defined IMU_MAG_X_NEUTRAL && !defined IMU_MAG_Y_NEUTRAL && !defined IMU_MAG_Z_NEUTRAL
#define IMU_MAG_X_NEUTRAL 0
#define IMU_MAG_Y_NEUTRAL 0
#define IMU_MAG_Z_NEUTRAL 0
#endif
#if !defined IMU_GYRO_P_SIGN & !defined IMU_GYRO_Q_SIGN & !defined IMU_GYRO_R_SIGN
#define IMU_GYRO_P_SIGN 1
#define IMU_GYRO_Q_SIGN 1