Package com.acmerobotics.roadrunner
Class CancelableProfile
-
- All Implemented Interfaces:
public final class CancelableProfile
Displacement profile that can be canceled at any time to yield a new displacement profile that achieves the final velocity as soon as possible and then promptly ends.
Cancellation profiles begin with a displacement of zero regardless of the provided cancellation displacement in the base profile.
Cancellation doesn't modify the base displacement profile, allowing for multiple cancellations.
-
-
Field Summary
Fields Modifier and Type Field Description public final DisplacementProfile
baseProfile
public final List<Double>
disps
public final List<Double>
minAccels
-
Constructor Summary
Constructors Constructor Description CancelableProfile(DisplacementProfile baseProfile, List<Double> disps, List<Double> minAccels)
-
Method Summary
Modifier and Type Method Description final DisplacementProfile
cancel(Double x)
-
-
Constructor Detail
-
CancelableProfile
CancelableProfile(DisplacementProfile baseProfile, List<Double> disps, List<Double> minAccels)
-
-
Method Detail
-
cancel
final DisplacementProfile cancel(Double x)
-
-
-
-