don't print info message about zero mag neutrals if USE_MAGNETOMETER is false

This commit is contained in:
Felix Ruess
2012-06-27 21:37:58 +02:00
parent c53be3d21b
commit c2a9987e56
2 changed files with 3 additions and 0 deletions
@@ -15,6 +15,7 @@
<target name="sim" board="pc"/>
<define name="ALT_KALMAN"/>
<define name="USE_MAGNETOMETER" value="FALSE"/>
<subsystem name="radio_control" type="ppm"/>
<subsystem name="telemetry" type="transparent"/>
+2
View File
@@ -39,7 +39,9 @@ void imu_init(void) {
#if defined IMU_MAG_X_NEUTRAL && defined IMU_MAG_Y_NEUTRAL && defined IMU_MAG_Z_NEUTRAL
VECT3_ASSIGN(imu.mag_neutral, IMU_MAG_X_NEUTRAL, IMU_MAG_Y_NEUTRAL, IMU_MAG_Z_NEUTRAL);
#else
#if USE_MAGNETOMETER
#pragma message "Info: Magnetomter neutrals are set to zero!"
#endif
INT_VECT3_ZERO(imu.mag_neutral);
#endif