We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65c4c56 commit 65f413eCopy full SHA for 65f413e
src/main/java/frc/robot/Subsystems/GamePieceFinder/GamePieceFinder.java
@@ -50,7 +50,7 @@ public Ray2d toRay() {
50
double distance = estimateDistanceFromArea(visionSample.getArea());
51
52
Transform2d robotToCamera = new Transform2d(CAMERA_OFFSET, CAMERA_ROTATION_OFFSET);
53
- Translation2d cameraPos = robotPose.transformBy(robotToCamera).getTranslation();
+ Translation2d cameraPos = robotPose.transformBy(robotToCamera);
54
55
double globalAngleRad = robotPose.getRotation().getRadians()
56
+ CAMERA_ROTATION_OFFSET.getRadians()
0 commit comments