From 96836b2e3e8e789b68b818680e069da97e994620 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 7 Oct 2025 08:37:53 +0300 Subject: [PATCH] Ensure showing correct raw data in imu command Some IMUs will reset acc and gyro buffer on whoAmI() call --- flix/imu.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/flix/imu.ino b/flix/imu.ino index 3022bd1..cf29c8e 100644 --- a/flix/imu.ino +++ b/flix/imu.ino @@ -125,6 +125,7 @@ void printIMUInfo() { print("rate: %.0f\n", loopRate); print("gyro: %f %f %f\n", rates.x, rates.y, rates.z); print("acc: %f %f %f\n", acc.x, acc.y, acc.z); + IMU.waitForData(); Vector rawGyro, rawAcc; IMU.getGyro(rawGyro.x, rawGyro.y, rawGyro.z); IMU.getAccel(rawAcc.x, rawAcc.y, rawAcc.z);