From: moo Date: Fri, 3 Apr 2026 16:31:43 +0000 (-0700) Subject: clear all animations discovery X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=7b799b089ebfcf11cbece3569d00b54336899ef8;p=FRC2026.git clear all animations discovery --- diff --git a/src/main/java/frc/robot/subsystems/LED/LED2.java b/src/main/java/frc/robot/subsystems/LED/LED2.java index 473e882..56adaa5 100644 --- a/src/main/java/frc/robot/subsystems/LED/LED2.java +++ b/src/main/java/frc/robot/subsystems/LED/LED2.java @@ -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))); }