Skip to content

Commit

Permalink
Fix wrong quat used in icm20948
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomona committed Feb 27, 2024
1 parent c0993d4 commit 7bf7b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sensors/icm20948sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ void ICM20948Sensor::readRotation()
Quat nRotation(q1, q2, q3, q0); // x, y, z, w

#if SEND_ACCELERATION
calculateAccelerationWithoutGravity(&fusedRotation);
calculateAccelerationWithoutGravity(&nRotation);
#endif

setFusedRotation(nRotation);
Expand All @@ -372,7 +372,7 @@ void ICM20948Sensor::readRotation()
Quat nRotation(q1, q2, q3, q0); // x, y, z, w

#if SEND_ACCELERATION
calculateAccelerationWithoutGravity(&fusedRotation);
calculateAccelerationWithoutGravity(&nRotation);
#endif

setFusedRotation(nRotation);
Expand Down

0 comments on commit 7bf7b56

Please sign in to comment.