]> git.taranathan.com Git - FRC2026.git/commitdiff
betterness
authormoo <moogoesmeow123@gmail.com>
Fri, 3 Apr 2026 16:15:56 +0000 (09:15 -0700)
committermoo <moogoesmeow123@gmail.com>
Fri, 3 Apr 2026 16:15:56 +0000 (09:15 -0700)
src/main/java/frc/robot/subsystems/LED/LED2.java

index 17f6c23980cddfc52a78d0c80929d91e68443280..473e882c9e0bdf99d91cc1f53fe178f99f0eb5d6 100644 (file)
@@ -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;