mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-29 02:38:07 +08:00
don't print info message about zero mag neutrals if USE_MAGNETOMETER is false
This commit is contained in:
@@ -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"/>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user