Skip to content

Commit

Permalink
fix the values (revert bs)
Browse files Browse the repository at this point in the history
  • Loading branch information
DriverStationComputer committed Sep 27, 2024
1 parent 2eec387 commit e8443f9
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 e8443f9

Please sign in to comment.