Skip to content

Commit

Permalink
camera position fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalApple committed Feb 10, 2024
1 parent fca98a1 commit 8839a69
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,19 +134,11 @@ public static class LEDConstants {

public static final class VisionConstants {
public static final String POSE_TABLE_KEY = "PoseEstimates";

public static final PhotonCamera FRONT_CAMERA = new PhotonCamera("Arducam_OV9281_USB_Camera_2");
public static final Transform3d FRONT_CAMERA_POSE = new Transform3d(
// new Translation3d(Units.inchesToMeters(10.375), Units.inchesToMeters(10.597), Units.inchesToMeters(22.638875)),
new Translation3d(Units.inchesToMeters(10.125), Units.inchesToMeters(7.767605), Units.inchesToMeters(22.25)),
new Rotation3d(Math.PI, 0, 0)
new Translation3d(Units.inchesToMeters(+8), Units.inchesToMeters(-0.25), Units.inchesToMeters(+44)),
new Rotation3d(Math.PI, 0, 0)
);

// public static final PhotonCamera RIGHT_CAMERA = new PhotonCamera("HD_USB_Camera");
// public static final Transform3d RIGHT_CAMERA_POSE = new Transform3d(
// // new Translation3d(Units.inchesToMeters(7.375), Units.inchesToMeters(10.597), Units.inchesToMeters(22.638875)),
// new Translation3d(Units.inchesToMeters(10.125), Units.inchesToMeters(-7.767605), Units.inchesToMeters(22.25)),
// new Rotation3d(Math.PI, 0, 0)
// );
}
}

0 comments on commit 8839a69

Please sign in to comment.