From 5b63d3aa1e1f6548b00c16ca2f9d9df6d6dce1b0 Mon Sep 17 00:00:00 2001 From: KI6LZN Date: Sat, 30 Sep 2023 21:31:02 -0700 Subject: [PATCH] Removed yaw, pitch, and roll from AprilTag pose because they no longer exist --- 2023/aprilTags/AprilTagAutonomousInitDetectionExample.java | 3 --- 2023/aprilTags/AprilTagDemo.java | 3 --- 2 files changed, 6 deletions(-) diff --git a/2023/aprilTags/AprilTagAutonomousInitDetectionExample.java b/2023/aprilTags/AprilTagAutonomousInitDetectionExample.java index 19ea63b8..00c3a06c 100644 --- a/2023/aprilTags/AprilTagAutonomousInitDetectionExample.java +++ b/2023/aprilTags/AprilTagAutonomousInitDetectionExample.java @@ -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))); } } diff --git a/2023/aprilTags/AprilTagDemo.java b/2023/aprilTags/AprilTagDemo.java index 70ea1846..9ca41047 100644 --- a/2023/aprilTags/AprilTagDemo.java +++ b/2023/aprilTags/AprilTagDemo.java @@ -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))); } }