ofVelocities

open fun ofVelocities(translationalVelocity: Measure<Velocity<Distance>>, angularVelocity: Measure<Velocity<Angle>>, drive: RoadRunnerDrive): TrajectoryVelocityConstraint

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

Return

A TrajectoryVelocityConstraint based on the given parameters.

Parameters

translationalVelocity

The translational velocity to use.

angularVelocity

The angular velocity to use.

drive

The DriveConstants to use.