maxAchievableVelocity

open fun maxAchievableVelocity(maxVoltage: Double, acceleration: Double): Double

Calculates the maximum achievable velocity given a maximum voltage supply and an acceleration. Useful for ensuring that velocity and acceleration constraints for a trapezoidal profile are simultaneously achievable - enter the acceleration constraint, and this will give you a simultaneously-achievable velocity constraint.

Return

The maximum possible velocity at the given acceleration.

Parameters

maxVoltage

The maximum voltage that can be supplied to the motor.

acceleration

The acceleration of the motor.