From ca43fe27980df039914b186676abd97fb4afd76e Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Wed, 12 Oct 2022 13:54:15 -0700 Subject: [PATCH] [wpimath] Use Units conversions in ComputerVisionUtil docs (NFC) (#4464) --- .../src/main/java/edu/wpi/first/math/ComputerVisionUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wpimath/src/main/java/edu/wpi/first/math/ComputerVisionUtil.java b/wpimath/src/main/java/edu/wpi/first/math/ComputerVisionUtil.java index e1fe7ee89c..e297634127 100644 --- a/wpimath/src/main/java/edu/wpi/first/math/ComputerVisionUtil.java +++ b/wpimath/src/main/java/edu/wpi/first/math/ComputerVisionUtil.java @@ -62,7 +62,7 @@ public final class ComputerVisionUtil { * @param fieldToTarget A Pose2d representing the target position in the field coordinate system. * @param cameraToRobot The position of the robot relative to the camera. If the camera was * mounted 3 inches behind the "origin" (usually physical center) of the robot, this would be - * Transform2d(3 inches, 0 inches, 0 degrees). + * Transform2d(Units.inchesToMeters(3), Units.inchesToMeters(0), Units.degreesToRadians(0)). * @return The position of the robot in the field. */ public static Pose2d estimateFieldToRobot( @@ -99,7 +99,7 @@ public final class ComputerVisionUtil { * @param fieldToTarget The position of the target in the field. * @param cameraToRobot The position of the robot relative to the camera. If the camera was * mounted 3 inches behind the "origin" (usually physical center) of the robot, this would be - * Transform2d(3 inches, 0 inches, 0 degrees). + * Transform2d(Units.inchesToMeters(3), Units.inchesToMeters(0), Units.degreesToRadians(0)). * @return The position of the robot in the field. */ public static Pose2d estimateFieldToRobot(