|
trj221 发表于 2013-3-1 10:06
我的方向原来也是乱的 后来修改下方向代码就可以了 你可以试一试看看
#define ACC_ORIENTATION(X, ...
你改的文件是不是在def.h里面是不是这个语句
#if defined(FREEIMUv043)
#define FREEIMUv04
#endif
#if defined(FREEIMUv04)
#define MPU6050
#define HMC5883
#define MS561101BA
#define ACC_ORIENTATION(X, Y, Z) {accADC[ROLL] = -X; accADC[PITCH] = -Y; accADC[YAW] = Z;}
#define GYRO_ORIENTATION(X, Y, Z) {gyroADC[ROLL] = Y; gyroADC[PITCH] = -X; gyroADC[YAW] = -Z;}
#define MAG_ORIENTATION(X, Y, Z) {magADC[ROLL] = X; magADC[PITCH] = Y; magADC[YAW] = -Z;}
#define MPU6050_EN_I2C_BYPASS // MAG connected to the AUX I2C bus of MPU6050
#undef INTERNAL_I2C_PULLUPS
#endif
|
|