core / com.acmerobotics.roadrunner.profile / MotionState

MotionState

class MotionState

Kinematic state of a motion profile at any given time.

Constructors

<init>

MotionState(x: Double, v: Double, a: Double = 0.0, j: Double = 0.0)

Kinematic state of a motion profile at any given time.

Properties

a

val a: Double

j

val j: Double

v

val v: Double

x

val x: Double

Functions

flipped

fun flipped(): MotionState

Returns a flipped (negated) version of the state.

get

operator fun get(t: Double): MotionState

Returns the MotionState at time t.

toString

fun toString(): String