From: moo Date: Fri, 3 Apr 2026 16:15:56 +0000 (-0700) Subject: betterness X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=1be2257d4145610deadb767410be1b6cdc3c48b5;p=FRC2026.git betterness --- diff --git a/src/main/java/frc/robot/subsystems/LED/LED2.java b/src/main/java/frc/robot/subsystems/LED/LED2.java index 17f6c23..473e882 100644 --- a/src/main/java/frc/robot/subsystems/LED/LED2.java +++ b/src/main/java/frc/robot/subsystems/LED/LED2.java @@ -53,11 +53,11 @@ public class LED2 extends SubsystemBase { var alliance = DriverStation.getAlliance(); if (alliance.isEmpty()) { - color = Color.kWhite; + color = Color.kOrange; } else if (alliance.get() == Alliance.Red) { color = Color.kRed; } else if (alliance.get() == Alliance.Blue) { - color = Color.kBlue; + color = Color.kOrange; } else { color = Color.kWhite; } @@ -66,9 +66,9 @@ public class LED2 extends SubsystemBase { System.out.println("CANdle features: " + featureConf + ", LED config: " + ledConf); - SmartDashboard.putData("LED Off", new InstantCommand(() -> lightsOff())); - SmartDashboard.putData("LED Strobe", new InstantCommand(() -> setStrobe())); - SmartDashboard.putData("LED Static", new InstantCommand(() -> setStatic())); + SmartDashboard.putData("LED Off", new InstantCommand(() -> lightsOff()).ignoringDisable(true)); + SmartDashboard.putData("LED Strobe", new InstantCommand(() -> setStrobe()).ignoringDisable(true)); + SmartDashboard.putData("LED Static", new InstantCommand(() -> setStatic()).ignoringDisable(true)); SmartDashboard.putData("LED Color/Team Reset", new InstantCommand(() -> { var allianceeee = DriverStation.getAlliance(); if (allianceeee.isEmpty()) { @@ -80,7 +80,7 @@ public class LED2 extends SubsystemBase { } else { color = Color.kWhite; } - })); + }).ignoringDisable(true)); } private boolean flippy = true;