getVelocityConstraint

open fun getVelocityConstraint(maxVel: Double, maxAngularVel: Double, trackWidth: Double): TrajectoryVelocityConstraint

Get a velocity constraint for the drive. Override this method to use a custom velocity constraint.

Return

A velocity constraint for the drive.

Parameters

maxVel

The maximum velocity of the drive.

maxAngularVel

The maximum angular velocity of the drive.

trackWidth

The track width of the drive.