VoltActionBuilder

class VoltActionBuilder<R : Robot>(robot: R)

Builder for creating complex action sequences for a Robot

Parameters

R

The type of Robot the actions will operate on

robot

The robot instance the actions will control

Constructors

Link copied to clipboard
constructor(robot: R)

Functions

Link copied to clipboard
Link copied to clipboard
fun instant(block: () -> Unit)

Adds an instant action that executes a block of code immediately.

Link copied to clipboard
fun parallel(block: VoltActionBuilder<R>.() -> Unit)

Adds a parallel block of actions that will run simultaneously.

Link copied to clipboard
fun sequence(block: VoltActionBuilder<R>.() -> Unit)

Adds a sequential block of actions that will run one after another.

Link copied to clipboard
operator fun Action.unaryPlus()

Adds an Action to the current sequence.

Link copied to clipboard
fun wait(dt: Double)

Adds an Action that will run until the specified time duration dt has elapsed.