MotorFeedforward

data class MotorFeedforward(val kS: Double, val kV: Double, val kA: Double)

Kinematic motor feedforward

Constructors

Link copied to clipboard
constructor(kS: Double, kV: Double, kA: Double)

Properties

Link copied to clipboard

kStatic, \(k_a\)

Link copied to clipboard

kStatic, \(k_s\)

Link copied to clipboard

kVelocity, \(k_v\)

Functions

Link copied to clipboard
fun compute(vel: Double, accel: Double): Double
Link copied to clipboard
fun maxAchievableAcceleration(maxVoltage: Double, velocity: Double): Double

Computes the maximum achievable acceleration given the maximum voltage and velocity.

Link copied to clipboard
fun minAchievableAcceleration(maxVoltage: Double, velocity: Double): Double

Computes the minimum achievable acceleration given the maximum voltage and velocity.