Skip to content

Commit

Permalink
Fix auto flipping to use nega case to determine boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
IanTapply22 committed Jan 8, 2024
1 parent 0c72e8b commit dbf6e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/frc/robot/subsystems/drive/DriveSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ private void configurePathPlanner() {
new ReplanningConfig()),
() -> {
var alliance = DriverStation.getAlliance();
if (alliance.isPresent()) {
return alliance.get() == DriverStation.Alliance.Red;
if (!alliance.isPresent()) {
return false;
}
return false;
return alliance.get() == DriverStation.Alliance.Red;
},
this);
}
Expand Down

0 comments on commit dbf6e49

Please sign in to comment.