Package-level declarations

Types

Link copied to clipboard
class CommandDelegate(supplier: () -> Command) : ReadOnlyProperty<Any?, Command>

Property delegate to initialize a new command instance on every access.

Link copied to clipboard
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().

Link copied to clipboard

Functional scope of a coroutine command

Link copied to clipboard

FunctionalCommand builder class

Link copied to clipboard

SequentialCommandGroup builder class

Properties

Link copied to clipboard
val Scheduler: CommandScheduler

More convenient access to the CommandScheduler singleton.

Functions

Link copied to clipboard
fun buildFunctionalCommand(initializer: FunctionalCommandBuilder.() -> Unit): Command

Create a new FunctionalCommand using a builder.

Link copied to clipboard

Create a new FunctionalCommand delegate using a builder.

Link copied to clipboard
fun buildSequentialCommand(initializer: SequentialCommandBuilder.() -> Unit): SequentialCommandGroup

Create a new SequentialCommandGroup using a builder.

Link copied to clipboard

Create a new SequentialCommandGroup delegate using a builder.

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

Create a new CoroutineCommand delegate

Link copied to clipboard
operator fun Command.invoke()

Operator function to schedule a command.

Link copied to clipboard
infix fun Command.named(name: String): Command

Infix function to set the name of a command.