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

index 473e882c9e0bdf99d91cc1f53fe178f99f0eb5d6..56adaa5a02d564cfa3a07f8fd1a84ab3b7a32f40 100644 (file)
@@ -62,6 +62,7 @@ public class LED2 extends SubsystemBase {
                        color = Color.kWhite;
                }
 
+               candle.clearAllAnimations();
                setStatic();
 
                System.out.println("CANdle features: " + featureConf + ", LED config: " + ledConf);
@@ -97,14 +98,17 @@ public class LED2 extends SubsystemBase {
        }
 
        public void setStrobe() {
+               candle.clearAllAnimations();
                candle.setControl(new StrobeAnimation(8, 8 + stripLength).withFrameRate(FLASH_RATE).withColor(new RGBWColor(color)));
        }
 
        public void setStatic() {
+               candle.clearAllAnimations();
                candle.setControl(new SolidColor(8, 8 + stripLength).withColor(new RGBWColor(color)));
        }
 
        public void lightsOff() {
+               candle.clearAllAnimations();
                candle.setControl(new SolidColor(8 , 8 + stripLength).withColor(new RGBWColor(0, 0, 0, 0)));
        }