core / com.acmerobotics.roadrunner.trajectory / DisplacementMarker

DisplacementMarker

data class DisplacementMarker (source)

Trajectory marker that is triggered when the specified displacement passes. The exact time is determined at generation-time by calling displacement with the path length.

Constructors

<init>

Trajectory marker that is triggered when the specified displacement passes. The exact time is determined at generation-time by calling displacement with the path length.

DisplacementMarker(displacement: (Double) -> Double, callback: MarkerCallback)

Properties

callback

val callback: MarkerCallback

displacement

val displacement: (Double) -> Double