Print the IMU information in imu command

This commit is contained in:
Oleg Kalachev
2024-10-31 10:24:00 +03:00
parent 39d4f39932
commit ad2c64625c
2 changed files with 6 additions and 0 deletions

View File

@@ -122,3 +122,8 @@ void printIMUCal() {
Serial.printf("accel bias: %f %f %f\n", accBias.x, accBias.y, accBias.z);
Serial.printf("accel scale: %f %f %f\n", accScale.x, accScale.y, accScale.z);
}
void printIMUInfo() {
Serial.printf("type: %s\n", IMU.getType());
Serial.printf("who am I: 0x%02X\n", IMU.whoAmI());
}