Package-level declarations

Types

Link copied to clipboard
fun interface Action

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

Link copied to clipboard

Instant action that executes f immediately.

Link copied to clipboard
fun interface InstantFunction
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
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
data class SleepAction(val dt: Double) : Action

Primitive sleep action that stalls for dt seconds.

Link copied to clipboard
class TimeTurn(val beginPose: Pose2d, val angle: Double, val constraints: TurnConstraints)

A time-indexed turn beginning at beginPose and rotating CCW angle radians subject to constraints.

Link copied to clipboard

Builder that combines trajectories, turns, and other actions.

Link copied to clipboard
Link copied to clipboard
fun interface TurnActionFactory
Link copied to clipboard
data class TurnConstraints(val maxAngVel: Double, val minAngAccel: Double, val maxAngAccel: Double)

Functions

Link copied to clipboard
fun now(): Double

Returns System.nanoTime in seconds.