Raw read, defect found, fixed and tested magnetometer

This commit is contained in:
Developer
2016-02-18 22:58:12 +01:00
parent dbb0c6c2ef
commit ffad7dc759
+2 -2
View File
@@ -134,8 +134,8 @@ void imu_bebop_event(void)
#if BEBOP_VERSION2
// In the second bebop version the magneto is turned 90 degrees
VECT3_ASSIGN(imu.mag_unscaled, -imu_bebop.ak.data.vect.x, -imu_bebop.ak.data.vect.y, imu_bebop.ak.data.vect.z);
#else
VECT3_ASSIGN(imu.mag_unscaled, imu_bebop.ak.data.vect.y, imu_bebop.ak.data.vect.x, imu_bebop.ak.data.vect.z);
#else //BEBOP regular first verion
VECT3_ASSIGN(imu.mag_unscaled, -imu_bebop.ak.data.vect.y, imu_bebop.ak.data.vect.x, imu_bebop.ak.data.vect.z);
#endif
imu_bebop.ak.data_available = FALSE;