Ensure showing correct raw data in imu command

Some IMUs will reset acc and gyro buffer on whoAmI() call
This commit is contained in:
Oleg Kalachev
2025-10-07 08:37:53 +03:00
parent 82d9d3570d
commit 96836b2e3e

View File

@@ -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);