mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 13:36:43 +00:00
Some minor cleanups and fixes
This commit is contained in:
@@ -122,9 +122,9 @@ void calibrateAccelOnce() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void printIMUCal() {
|
void printIMUCal() {
|
||||||
Serial.printf("gyro bias: %f, %f, %f\n", gyroBias.x, gyroBias.y, gyroBias.z);
|
Serial.printf("gyro bias: %f %f %f\n", gyroBias.x, gyroBias.y, gyroBias.z);
|
||||||
Serial.printf("accel bias: %f, %f, %f\n", accBias.x, accBias.y, accBias.z);
|
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);
|
Serial.printf("accel scale: %f %f %f\n", accScale.x, accScale.y, accScale.z);
|
||||||
}
|
}
|
||||||
|
|
||||||
void printIMUInfo() {
|
void printIMUInfo() {
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ template <typename T>
|
|||||||
void printArray(T arr[], int size) {
|
void printArray(T arr[], int size) {
|
||||||
for (uint8_t i = 0; i < size; i++) {
|
for (uint8_t i = 0; i < size; i++) {
|
||||||
Serial.printf("%g ", static_cast<float>(arr[i]));
|
Serial.printf("%g ", static_cast<float>(arr[i]));
|
||||||
if (i < size - 1) Serial.print(" ");
|
|
||||||
}
|
}
|
||||||
Serial.println();
|
Serial.println();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user