mirror of
https://github.com/okalachev/flix.git
synced 2026-01-11 21:46:55 +00:00
Show imu data in cli
This commit is contained in:
@@ -66,6 +66,8 @@ static void doCommand()
|
|||||||
} else if (command == "psq") {
|
} else if (command == "psq") {
|
||||||
Serial.printf("qx: %f qy: %f qz: %f qw: %f\n", attitude.x, attitude.y, attitude.z, attitude.w);
|
Serial.printf("qx: %f qy: %f qz: %f qw: %f\n", attitude.x, attitude.y, attitude.z, attitude.w);
|
||||||
} else if (command == "imu") {
|
} else if (command == "imu") {
|
||||||
|
Serial.printf("gyro: %f %f %f\n", rates.x, rates.y, rates.z);
|
||||||
|
Serial.printf("acc: %f %f %f\n", acc.x, acc.y, acc.z);
|
||||||
printIMUCal();
|
printIMUCal();
|
||||||
} else if (command == "rc") {
|
} else if (command == "rc") {
|
||||||
Serial.printf("RAW throttle %d yaw %d pitch %d roll %d aux %d mode %d\n",
|
Serial.printf("RAW throttle %d yaw %d pitch %d roll %d aux %d mode %d\n",
|
||||||
|
|||||||
@@ -45,4 +45,4 @@ void setLED(bool on) {};
|
|||||||
void calibrateGyro() {};
|
void calibrateGyro() {};
|
||||||
void fullMotorTest(int n) {};
|
void fullMotorTest(int n) {};
|
||||||
void sendMotors() {};
|
void sendMotors() {};
|
||||||
void printIMUCal() { Serial.print("N/A"); };
|
void printIMUCal() { Serial.print("cal: N/A\n"); };
|
||||||
|
|||||||
Reference in New Issue
Block a user