Skip to content

armgit / flix

Public Imported from GitHub
0

Making an ESP32-based quadcopter from scratch

Fix fields order in psq command

Oleg Kalachev4c89b10767ad
diff --git a/flix/cli.ino b/flix/cli.ino
index a901320..dc2e22f 100644
--- a/flix/cli.ino
+++ b/flix/cli.ino
@@ -107,7 +107,7 @@ void doCommand(String str, bool echo = false) {
Vector a = attitude.toEuler();
print("roll: %f pitch: %f yaw: %f\n", degrees(a.x), degrees(a.y), degrees(a.z));
} else if (command == "psq") {
- print("qx: %f qy: %f qz: %f qw: %f\n", attitude.x, attitude.y, attitude.z, attitude.w);
+ print("qw: %f qx: %f qy: %f qz: %f\n", attitude.w, attitude.x, attitude.y, attitude.z);
} else if (command == "imu") {
printIMUInfo();
printIMUCalibration();