Skip to content

Commit

Permalink
fix: gyro sign
Browse files Browse the repository at this point in the history
  • Loading branch information
ClemensElflein committed Nov 7, 2022
1 parent 7930816 commit 08839e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Firmware/LowLevel/src/imu/MPU9250/imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ bool imu_read(float *acceleration_mss, float *gyro_rads, float *mag_uT)

gyro_rads[0] = IMU.getGyroX_rads();
gyro_rads[1] = IMU.getGyroY_rads();
gyro_rads[2] = IMU.getGyroZ_rads();
gyro_rads[2] = -IMU.getGyroZ_rads();

mag_uT[0] = IMU.getMagX_uT();
mag_uT[1] = IMU.getMagY_uT();
Expand All @@ -37,4 +37,4 @@ bool imu_read(float *acceleration_mss, float *gyro_rads, float *mag_uT)

void imu_loop() {

}
}

0 comments on commit 08839e3

Please sign in to comment.