core / com.acmerobotics.roadrunner.kinematics / Kinematics / calculateMotorFeedforward

calculateMotorFeedforward

@JvmStatic fun calculateMotorFeedforward(vels: List<Double>, accels: List<Double>, kV: Double, kA: Double, kStatic: Double): List<Double> (source)

Computes the motor feedforward (i.e., open loop powers) for the given set of coefficients.

@JvmStatic fun calculateMotorFeedforward(vel: Double, accel: Double, kV: Double, kA: Double, kStatic: Double): Double (source)

Computes the motor feedforward (i.e., open loop power) for the given set of coefficients.