mirror of
https://github.com/okalachev/flix.git
synced 2025-07-27 09:39:33 +00:00
Show imu data in cli
This commit is contained in:
parent
34fd303027
commit
17edd0ee00
@ -66,6 +66,8 @@ static void doCommand()
|
||||
} else if (command == "psq") {
|
||||
Serial.printf("qx: %f qy: %f qz: %f qw: %f\n", attitude.x, attitude.y, attitude.z, attitude.w);
|
||||
} 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();
|
||||
} else if (command == "rc") {
|
||||
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 fullMotorTest(int n) {};
|
||||
void sendMotors() {};
|
||||
void printIMUCal() { Serial.print("N/A"); };
|
||||
void printIMUCal() { Serial.print("cal: N/A\n"); };
|
||||
|
Loading…
x
Reference in New Issue
Block a user