Skip to content

Commit

Permalink
Update SwerveSubsystem.java
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch authored Mar 14, 2024
1 parent 26694ff commit c749e3c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ public void zeroGyro()
swerveDrive.zeroGyro();
}

/**
* Checks if the alliance is red, defaults to false if alliance isn't available.
* @return true if the red alliance, false if blue. Defaults to false if none is available.
*/
private boolean isRedAlliance()
{
var alliance = DriverStation.getAlliance();
Expand Down

0 comments on commit c749e3c

Please sign in to comment.