CoroutineCommand
class CoroutineCommand(requirements: Set<Subsystem> = setOf(), runsWhileDisabled: Boolean = false, block: suspend CoroutineCommandIteratorScope.() -> Unit) : Command
A command that executes in a coroutine-styled fashion. It executes until reaching a yield().
To create a delegated CoroutineCommand, use coroutineCommandDelegate.
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
Constructors
Link copied to clipboard
constructor(requirements: Set<Subsystem> = setOf(), runsWhileDisabled: Boolean = false, block: suspend CoroutineCommandIteratorScope.() -> Unit)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Command initialization function
Link copied to clipboard
Link copied to clipboard
Command finishing condition
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Command runs when disabled
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard