startThread

Call to delegate all updates of this subsystem to a thread that will begin execution on this method call. WARNING: You must ensure you know what you're doing before you multithread.

Improper usage of threading subsystems will result in unexpected and potentially dangerous robot behaviour. Ensure you know the consequences of multithreading, especially over hardware on a Robot Controller.

When this subsystem is being multithreaded, manual calls to update will be ignored.

The thread will run at full speed as-is.


fun startThread(loopSleepDuration: Measure<Time>)

Call to delegate all updates of this subsystem to a thread that will begin execution on this method call. WARNING: You must ensure you know what you're doing before you multithread.

Improper usage of threading subsystems will result in unexpected and potentially dangerous robot behaviour. Ensure you know the consequences of multithreading, especially over hardware on a Robot Controller.

When this subsystem is being multithreaded, manual calls to update will be ignored.

Parameters

loopSleepDuration

the duration to sleep the external thread by after every iteration