Skip to content

Commit

Permalink
we screwed it up ignore the old one our bad
Browse files Browse the repository at this point in the history
  • Loading branch information
DriverStationComputer committed Sep 23, 2024
1 parent e042145 commit d8f05ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/carlmontrobotics/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ public Command constructPPSimpleAuto() {
//Note: alliance detection and path generation work correctly!
//Solution: Redeploy after auto.
Pose2d endPos = (DriverStation.getAlliance().get() == DriverStation.Alliance.Blue)
? currPos.transformBy(new Transform2d(-1, 0, new Rotation2d(0)))
: currPos.transformBy(new Transform2d(1, 0, new Rotation2d(0)));
? currPos.transformBy(new Transform2d(1, 0, new Rotation2d(0)))
: currPos.transformBy(new Transform2d(-1, 0, new Rotation2d(0)));

List<Translation2d> bezierPoints = PathPlannerPath.bezierFromPoses(currPos, endPos);

Expand Down

0 comments on commit d8f05ae

Please sign in to comment.