maxAccelerationFromVoltage

fun maxAccelerationFromVoltage(availableVoltage: Double, velocityVoltage: Double, kA: Double): Double

Calculates the maximum acceleration achievable with the given voltage and motor constants.

Return

Maximum achievable acceleration

Parameters

availableVoltage

The voltage available for acceleration

velocityVoltage

The voltage already being used for maintaining velocity

kA

Acceleration constant