coroutineCommandDelegate

fun coroutineCommandDelegate(requirements: Set<Subsystem> = setOf(), runsWhileDisabled: Boolean = false, block: suspend CoroutineCommandIteratorScope.() -> Unit): CommandDelegate

Create a new CoroutineCommand delegate

Parameters

requirements

(optional) The command subsystem requirements

runsWhileDisabled

(optional) A flag to run the command while the robot is disabled

block

The code block used for execution