Skip to content

Commit

Permalink
Print out loop frequency on imu command
Browse files Browse the repository at this point in the history
  • Loading branch information
okalachev committed Apr 2, 2024
1 parent 28a6bf2 commit d095b81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flix/cli.ino
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void doCommand(String& command, String& value) {
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();
Serial.printf("frequency: %f\n", loopFreq);
} else if (command == "rc") {
Serial.printf("Raw: throttle %d yaw %d pitch %d roll %d armed %d mode %d\n",
channels[RC_CHANNEL_THROTTLE], channels[RC_CHANNEL_YAW], channels[RC_CHANNEL_PITCH],
Expand Down

0 comments on commit d095b81

Please sign in to comment.