maxAchievableAcceleration

open fun maxAchievableAcceleration(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 maximum possible acceleration at the given velocity.

Parameters

maxVoltage

The maximum voltage that can be supplied to the elevator.

velocity

The velocity of the elevator.