CoroutineCommand

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

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