max Achievable Velocity
open fun maxAchievableVelocity(@NonNull maxVoltage: Measure<Voltage>, @NonNull angle: Measure<Angle>, @NonNull acceleration: Measure<Velocity<Velocity<Angle>>>): Measure<Velocity<Angle>>
Calculates the maximum achievable velocity given a maximum voltage supply, a position, 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 and angle.
Parameters
max Voltage
The maximum voltage that can be supplied to the arm.
angle
The angle of the arm.
acceleration
The acceleration of the arm.