fix includes for analogimu

This commit is contained in:
Felix Ruess
2010-12-09 20:15:34 +01:00
parent 3c00ca3d71
commit 63261b3b78
4 changed files with 3 additions and 3 deletions
+1
View File
@@ -32,6 +32,7 @@ void imu_init(void) {
/* initialises neutrals */
RATES_ASSIGN(imu.gyro_neutral, IMU_GYRO_P_NEUTRAL, IMU_GYRO_Q_NEUTRAL, IMU_GYRO_R_NEUTRAL);
VECT3_ASSIGN(imu.accel_neutral, IMU_ACCEL_X_NEUTRAL, IMU_ACCEL_Y_NEUTRAL, IMU_ACCEL_Z_NEUTRAL);
//FIXME should not assume that every imu has a mag and this id defined?
VECT3_ASSIGN(imu.mag_neutral, IMU_MAG_X_NEUTRAL, IMU_MAG_Y_NEUTRAL, IMU_MAG_Z_NEUTRAL);
/*
+1
View File
@@ -26,6 +26,7 @@
#include "math/pprz_algebra_int.h"
#include "math/pprz_algebra_float.h"
#include "generated/airframe.h"
/* must be defined by underlying hardware */
extern void imu_impl_init(void);
-2
View File
@@ -22,9 +22,7 @@
*/
#include "imu_analog.h"
#include "generated/airframe.h"
#include "mcu_periph/adc.h"
#include "subsystems/imu.h"
#include "mcu_periph/uart.h"
volatile bool_t analog_imu_available;
+1 -1
View File
@@ -46,7 +46,7 @@ extern volatile bool_t analog_imu_available;
}
#define ImuMagEvent(_mag_handler) { \
if (false) { \
if (0) { \
_mag_handler(); \
} \
}