Skip to content

Commit

Permalink
Localization test degrees heading
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrott committed Nov 21, 2023
1 parent df17f93 commit ddfb994
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void runOpMode() throws InterruptedException {

telemetry.addData("x", drive.pose.position.x);
telemetry.addData("y", drive.pose.position.y);
telemetry.addData("heading", drive.pose.heading);
telemetry.addData("heading (deg)", Math.toDegrees(drive.pose.heading.log()));
telemetry.update();
}
} else if (TuningOpModes.DRIVE_CLASS.equals(TankDrive.class)) {
Expand All @@ -51,7 +51,7 @@ public void runOpMode() throws InterruptedException {

telemetry.addData("x", drive.pose.position.x);
telemetry.addData("y", drive.pose.position.y);
telemetry.addData("heading", drive.pose.heading);
telemetry.addData("heading (deg)", Math.toDegrees(drive.pose.heading.log()));
telemetry.update();
}
} else {
Expand Down

0 comments on commit ddfb994

Please sign in to comment.