Skip to content

Commit

Permalink
Removed yaw, pitch, and roll from AprilTag pose because they no longe…
Browse files Browse the repository at this point in the history
…r exist
  • Loading branch information
KI6LZN committed Oct 1, 2023
1 parent ec19a9f commit 5b63d3a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions 2023/aprilTags/AprilTagAutonomousInitDetectionExample.java
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,5 @@ void tagToTelemetry(AprilTagDetection detection)
telemetry.addLine(String.format("Translation X: %.2f feet", detection.pose.x*FEET_PER_METER));
telemetry.addLine(String.format("Translation Y: %.2f feet", detection.pose.y*FEET_PER_METER));
telemetry.addLine(String.format("Translation Z: %.2f feet", detection.pose.z*FEET_PER_METER));
telemetry.addLine(String.format("Rotation Yaw: %.2f degrees", Math.toDegrees(detection.pose.yaw)));
telemetry.addLine(String.format("Rotation Pitch: %.2f degrees", Math.toDegrees(detection.pose.pitch)));
telemetry.addLine(String.format("Rotation Roll: %.2f degrees", Math.toDegrees(detection.pose.roll)));
}
}
3 changes: 0 additions & 3 deletions 2023/aprilTags/AprilTagDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,6 @@ public void onError(int errorCode)
telemetry.addLine(String.format("Translation X: %.2f feet", detection.pose.x*FEET_PER_METER));
telemetry.addLine(String.format("Translation Y: %.2f feet", detection.pose.y*FEET_PER_METER));
telemetry.addLine(String.format("Translation Z: %.2f feet", detection.pose.z*FEET_PER_METER));
telemetry.addLine(String.format("Rotation Yaw: %.2f degrees", Math.toDegrees(detection.pose.yaw)));
telemetry.addLine(String.format("Rotation Pitch: %.2f degrees", Math.toDegrees(detection.pose.pitch)));
telemetry.addLine(String.format("Rotation Roll: %.2f degrees", Math.toDegrees(detection.pose.roll)));
}
}

Expand Down

0 comments on commit 5b63d3a

Please sign in to comment.