Skip to content

Commit

Permalink
changed camera offset from robot to be more accurate, still needs bet…
Browse files Browse the repository at this point in the history
…ter measuring befor comp
  • Loading branch information
Ace5tar committed Jan 28, 2025
1 parent 76d08be commit 2f7c241
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,25 +154,21 @@ public final class DoryCameras {
public static final Transform3d frontLeftCamToRobot =
new Transform3d(
new Translation3d(
Units.inchesToMeters(11.32),
Units.inchesToMeters(7.08),
Units.inchesToMeters(7.8)),
Units.inchesToMeters(7), Units.inchesToMeters(11), Units.inchesToMeters(4)),
new Rotation3d(Units.degreesToRadians(180), Units.degreesToRadians(-30), 0.0));

public static final String frontRightCamName = "front-right";
public static final Transform3d frontRightCamToRobot =
new Transform3d(
new Translation3d(
Units.inchesToMeters(8.25), Units.inchesToMeters(11), Units.inchesToMeters(7.8)),
Units.inchesToMeters(7), Units.inchesToMeters(-11), Units.inchesToMeters(4)),
new Rotation3d(Units.degreesToRadians(180), Units.degreesToRadians(-30), 0.0));

public static final String backLeftCamName = "back-left";
public static final Transform3d backLeftCamToRobot =
new Transform3d(
new Translation3d(
Units.inchesToMeters(-12.01),
Units.inchesToMeters(11.65),
Units.inchesToMeters(10.58)),
Units.inchesToMeters(-11), Units.inchesToMeters(11.5), Units.inchesToMeters(6)),
new Rotation3d(
Units.degreesToRadians(180),
Units.degreesToRadians(-23.5),
Expand All @@ -182,9 +178,7 @@ public final class DoryCameras {
public static final Transform3d backRightCamToRobot =
new Transform3d(
new Translation3d(
Units.inchesToMeters(-12.01),
Units.inchesToMeters(-11.65),
Units.inchesToMeters(10.58)),
Units.inchesToMeters(-11), Units.inchesToMeters(-11.5), Units.inchesToMeters(6)),
new Rotation3d(
Units.degreesToRadians(180),
Units.degreesToRadians(-23.5),
Expand Down

0 comments on commit 2f7c241

Please sign in to comment.