ofAcceleration

open fun ofAcceleration(translationalAcceleration: Measure<Velocity<Velocity<Distance>>>, drive: RoadRunnerDrive): TrajectoryAccelerationConstraint

Returns a TrajectoryAccelerationConstraint based on the given DriveConstants and translational acceleration.

Return

A TrajectoryAccelerationConstraint based on the given parameters.

Parameters

translationalAcceleration

The translational acceleration to use.

drive

The DriveConstants to use.