minAchievableAcceleration

open fun minAchievableAcceleration(maxVoltage: Double, velocity: Double): Double

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

Return

The minimum possible acceleration at the given velocity.

Parameters

maxVoltage

The maximum voltage that can be supplied to the motor.

velocity

The velocity of the motor.