From: Arnav495 Date: Fri, 3 Apr 2026 22:29:27 +0000 (-0700) Subject: Minor LED changes. X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=c6765c5acb076b24045ec1c7fe5efeb4371a4c65;p=FRC2026.git Minor LED changes. --- diff --git a/src/main/java/frc/robot/subsystems/LED/LED2.java b/src/main/java/frc/robot/subsystems/LED/LED2.java index 04d0982..2c5d87e 100644 --- a/src/main/java/frc/robot/subsystems/LED/LED2.java +++ b/src/main/java/frc/robot/subsystems/LED/LED2.java @@ -59,7 +59,7 @@ public class LED2 extends SubsystemBase { setColor(); candle.clearAllAnimations(); - setStatic(); + lightsOff(); System.out.println("CANdle features: " + featureConf + ", LED config: " + ledConf); @@ -75,7 +75,6 @@ public class LED2 extends SubsystemBase { SmartDashboard.putData("LED Color Team Reset", new InstantCommand(() -> setColor()).ignoringDisable(true)); } - public void setColor() { var alliance = DriverStation.getAlliance(); if (alliance.isEmpty()) { @@ -89,7 +88,6 @@ public class LED2 extends SubsystemBase { } } - private enum State { OFF, ON, AUTO, SLOW, FAST }; private State lastState = State.OFF; @@ -100,7 +98,7 @@ public class LED2 extends SubsystemBase { State targetState = State.ON; if (underSecsToFlip(5)) targetState = State.SLOW; if (underSecsToFlip(1)) targetState = State.FAST; - if (DriverStation.isAutonomousEnabled()) targetState = State.AUTO; + if (DriverStation.isAutonomous()) targetState = State.AUTO; if (forceOff) targetState = State.OFF; if (targetState != lastState) {