Package-level declarations

Types

Link copied to clipboard
fun interface Action

Concurrent task for cooperative multitasking with some FTC dashboard hooks. Actions may have a mutable state.

Link copied to clipboard
open class ActionEx @JvmOverloads constructor(initBlock: (TelemetryPacket) -> Unit = { }, loopBlock: (TelemetryPacket) -> Boolean = { false }, endBlock: (TelemetryPacket) -> Unit = { }) : Action
Link copied to clipboard
object Actions

Utility object for action-related functionality.

Link copied to clipboard

Instant action that executes f immediately.

Link copied to clipboard
fun interface InstantFunction
Link copied to clipboard
interface Interruptible : Action

An action that can be interrupted, providing a specific action to execute upon interruption.

Link copied to clipboard

Null action that does nothing.

Link copied to clipboard
data class ParallelAction(val initialActions: List<Action>) : Action

Action combinator that executes the action group initialActions in parallel. Each call to run on this action calls run on every live child action in the order provided. Completed actions are removed from the rotation and do not prevent the completion of other actions. This action completes when all of initialActions have.

Link copied to clipboard
class RaceAction(initialActions: List<Action>) : Action

Action combinator that executes the action group initialActions in parallel. Each call to run on this action calls run on every live child action in the order provided. Once one action ends, all other actions are ended.

Link copied to clipboard
data class SequentialAction(val initialActions: List<Action>) : Action

Action combinator that executes the action group initialActions in series. Each action is run one after the other. When an action completes, the next one is immediately run. This action completes when the last action completes.

Link copied to clipboard
class SleepAction(val dt: Duration) : Action
Link copied to clipboard

Builder that combines trajectories, turns, and other actions.

Link copied to clipboard
Link copied to clipboard
fun interface TurnActionFactory