Skip to content

Commit

Permalink
Fix speaker opening constant
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbonner committed Feb 13, 2024
1 parent 4551aba commit 67f0108
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static final class Speaker {
new Translation3d(
Units.inchesToMeters(18.055),
Units.inchesToMeters(238.815),
Units.inchesToMeters(13.091));
Units.inchesToMeters(83.091));

public static Translation3d topLeftSpeaker =
new Translation3d(
Expand All @@ -87,10 +87,7 @@ public static final class Speaker {

/** Center of the speaker opening (blue alliance) */
public static Translation3d centerSpeakerOpening =
new Translation3d(
topLeftSpeaker.getX() / 2.0,
fieldWidth - Units.inchesToMeters(104.0),
(bottomLeftSpeaker.getZ() + bottomRightSpeaker.getZ()) / 2.0);
bottomLeftSpeaker.interpolate(topRightSpeaker, 0.5);
}

public static double aprilTagWidth = Units.inchesToMeters(6.50);
Expand Down

0 comments on commit 67f0108

Please sign in to comment.