get Velocity Constraint
fun getVelocityConstraint(maxVel: Double, maxAngularVel: Double, trackWidth: Double): TrajectoryVelocityConstraint
Creates a velocity constraint for a Tank drive.
This function combines an AngularVelocityConstraint and a TankVelocityConstraint into a MinVelocityConstraint to ensure the bot adheres to both constraints.
Return
A TrajectoryVelocityConstraint that enforces the specified constraints.
Parameters
max Vel
The maximum linear velocity.
max Angular Vel
The maximum angular velocity.
track Width
The track width of the bot.