onActiveLoop

fun onActiveLoop(vararg runnables: Runnable)

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 method is called before the activeLoop method, and will run the runnables in the order they were added.