Accel

class Accel

Utility constructor for creating simple RoadRunner acceleration constraints.

Author

Lucas Bubner, 2024

Since

6.0.0

Properties

Link copied to clipboard
Specified maximum acceleration in inches per second squared.
Link copied to clipboard
Specified minimum acceleration in inches per second squared.

Functions

Link copied to clipboard
open fun andMax(maxAccel: Double, @NonNull unit: Velocity<Velocity<Distance>>): Accel
Compose this Accel object with a maximum acceleration constraint.
Link copied to clipboard
open fun andMin(minAccel: Double, @NonNull unit: Velocity<Velocity<Distance>>): Accel
Compose this Accel object with a minimum acceleration constraint.
Link copied to clipboard
open fun getOrDefault(@NonNull defaultConstraints: ProfileAccelConstraint): ProfileAccelConstraint
Get a built ProfileAccelConstraint object with the specified constraints.
Link copied to clipboard
open fun ofMax(maxAccel: Double, @NonNull unit: Velocity<Velocity<Distance>>): Accel
Create a new Accel object with the specified maximum acceleration.
Link copied to clipboard
open fun ofMin(minAccel: Double, @NonNull unit: Velocity<Velocity<Distance>>): Accel
Create a new Accel object with the specified minimum acceleration.