mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
Led control (#109)
* Refactor vision source manager to not suck * Run spotless * Fix settings not being saved * run spotless * add braudcast * set LEDs based on pipeline * GPIO refactor, hardwaremanager singleton change * PiGPIO cleanup, add repeating blink, StatusLED * Refactor CustomGPIO * add ledMode NT Entry * Add blink reset * Blink fixes * Move logic to VisionLED class * Resolve comments, apply spotless * "Fix' HardwareManagerTest Co-authored-by: Matt <matthew.morley.ca@gmail.com>
This commit is contained in:
@@ -71,6 +71,10 @@ public class TimedTaskManager {
|
||||
}
|
||||
}
|
||||
|
||||
public void addOneShotTask(Runnable runnable, long millisStartDelay) {
|
||||
timedTaskExecutorPool.schedule(runnable, millisStartDelay, TimeUnit.MILLISECONDS);
|
||||
}
|
||||
|
||||
public void cancelTask(String identifier) {
|
||||
var future = activeTasks.getOrDefault(identifier, null);
|
||||
if (future != null) {
|
||||
|
||||
Reference in New Issue
Block a user