Skip to content

Commit

Permalink
Pass scale to fifo packet in fifo test
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmuskleist committed Jul 14, 2023
1 parent 1c581ec commit 4a779b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/nucleo_g474re/ixm42xxx_fifo/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ class ImuThread : public modm::pt::Protothread, public modm::ixm42xxx
modm::Vector3f gyro;

fifoPacket.getTemp(temp);
fifoPacket.getAccel(accel);
fifoPacket.getGyro(gyro);
fifoPacket.getAccel(accel, fifoData.getAccelScale());
fifoPacket.getGyro(gyro, fifoData.getGyroScale());

MODM_LOG_INFO.printf("Temp: %f\n", temp);
MODM_LOG_INFO.printf("Accel: (%f, %f, %f)\n", accel.x, accel.y, accel.z);
Expand Down

0 comments on commit 4a779b1

Please sign in to comment.