ofVelocity

open fun ofVelocity(translationalVelocity: Measure<Velocity<Distance>>, drive: RoadRunnerDrive): TrajectoryVelocityConstraint

Returns a TrajectoryVelocityConstraint based on the given DriveConstants and translational velocity.

Return

A TrajectoryVelocityConstraint based on the given parameters.

Parameters

translationalVelocity

The translational velocity to use.

drive

The DriveConstants to use.