From bf4c2ddb596d37c645a3f921f82aa3c2cf3d0062 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 28 Dec 2023 11:48:11 -0600 Subject: [PATCH] blink rate and color tweaks after testing on real hardware --- .../common/hardware/HardwareManager.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java b/photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java index e1923d8d5a..dcb0ac69dc 100644 --- a/photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java +++ b/photon-core/src/main/java/org/photonvision/common/hardware/HardwareManager.java @@ -99,7 +99,7 @@ private HardwareManager(HardwareConfig hardwareConfig, HardwareSettings hardware : null; if (statusLED != null) { - TimedTaskManager.getInstance().addTask("StatusLEDUpdate", this::statusLEDUpdate, 200); + TimedTaskManager.getInstance().addTask("StatusLEDUpdate", this::statusLEDUpdate, 150); } var hasBrightnessRange = hardwareConfig.ledBrightnessRange.size() == 2; @@ -187,7 +187,7 @@ public void setRunning(boolean isRunning) { private void statusLEDUpdate() { // make blinky - boolean blinky = ((blinkCounter % 2) == 0); + boolean blinky = ((blinkCounter % 3) > 0); // check if any pipeline has a visible target boolean anyTarget = false; @@ -200,16 +200,16 @@ private void statusLEDUpdate() { if (this.systemRunning) { if (!this.ntConnected) { if (anyTarget) { - // alternate blue/yellow - statusLED.setRGB(blinky, blinky, !blinky); + // Blue Flashing + statusLED.setRGB(false, false, blinky); } else { // Yellow flashing statusLED.setRGB(blinky, blinky, false); } } else { if (anyTarget) { - // alternate blue/green - statusLED.setRGB(false, blinky, !blinky); + // Blue + statusLED.setRGB(false, false, blinky); } else { // blinky green statusLED.setRGB(false, blinky, false);