mirror of
https://github.com/okalachev/flix.git
synced 2026-01-09 12:36:49 +00:00
Ensure showing correct raw data in imu command
Some IMUs will reset acc and gyro buffer on whoAmI() call
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user