Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
funni led logic tehee
Browse files Browse the repository at this point in the history
  • Loading branch information
PatribotsProgramming committed Nov 4, 2023
1 parent 20e4791 commit c9f26df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,9 @@ public void disabledInit() {

@Override
public void disabledPeriodic() {
if (DriverStation.getAlliance() != Alliance.Invalid)
if (DriverStation.getAlliance() != Alliance.Invalid && DriverStation.isDSAttached()) {
FieldConstants.ALLIANCE = DriverStation.getAlliance();
}

if (FieldConstants.ALLIANCE != Alliance.Invalid) {
if (Math.abs(swerve.getPitch().getDegrees()) > 35) {
Expand Down

0 comments on commit c9f26df

Please sign in to comment.