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:
Banks T
2020-09-04 21:15:17 -04:00
committed by GitHub
parent 7f4df2ff4d
commit ec9e3dcf79
13 changed files with 523 additions and 314 deletions

View File

@@ -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) {