From 21d18cb7cb2acd8f1d6d03796de69eae1eb651fa Mon Sep 17 00:00:00 2001 From: moo Date: Fri, 3 Apr 2026 08:01:40 -0700 Subject: [PATCH] woops --- src/main/java/frc/robot/subsystems/LED/LED2.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/frc/robot/subsystems/LED/LED2.java b/src/main/java/frc/robot/subsystems/LED/LED2.java index 5c71860..64bc1b7 100644 --- a/src/main/java/frc/robot/subsystems/LED/LED2.java +++ b/src/main/java/frc/robot/subsystems/LED/LED2.java @@ -27,7 +27,8 @@ public class LED2 extends SubsystemBase { private CANdle candle; public static final int stripLength = 67; - public static final double FLASH_INTERVAL = .25; + /// Hz + public static final int FLASH_RATE = 4; private Color color; @@ -78,7 +79,7 @@ public class LED2 extends SubsystemBase { } private void setStrobe() { - candle.setControl(new StrobeAnimation(8, 8 + stripLength).withFrameRate(4).withColor(new RGBWColor(color))); + candle.setControl(new StrobeAnimation(8, 8 + stripLength).withFrameRate(FLASH_RATE).withColor(new RGBWColor(color))); } private void setStatic() { @@ -92,10 +93,10 @@ public class LED2 extends SubsystemBase { if (timeToActive.isEmpty() && timeToInactive.isEmpty()) { return false; } else if (timeToActive.isPresent()) { - return (timeToActive.get() <= secs) ? true : false; + return (timeToActive.get() <= secs); } else if (timeToInactive.isPresent()) { - return (timeToInactive.get() <= secs) ? true : false; + return (timeToInactive.get() <= secs); } else { return false; } -- 2.39.5