on Active Loop
Add a Runnable to the list of runnables to be executed just before the activeLoop. This is useful for running code that needs to be executed on the main thread, but is not a subsystem or task.
This method is public to allow you to add looping code from RobotConfig, Task, and other contexts. The runnables will run in the in the order they were added, and duplicate Runnable instances will be ignored.
Add a Runnable to the list of runnables to be executed just before the activeLoop. This is useful for running code that needs to be executed on the main thread, but is not a subsystem or task.
This method is public to allow you to add looping code from RobotConfig, Task, and other contexts. This runnable will run in the in the order they were added, and duplicate Runnable instances will be ignored.