SimpleFFCoefficients

data class SimpleFFCoefficients @JvmOverloads constructor(var kS: Double, var kV: Double, var kA: Double = 0.0)(source)

Coefficients for a simple feedforward controller.

These coefficients model the relationship between desired motion and motor output: output = kS * sign(velocity) + kV * velocity + kA * acceleration

Constructors

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

Properties

Link copied to clipboard

Acceleration gain. Multiplied by the desired acceleration to produce the additional output needed to accelerate the system (overcomes inertia).

Link copied to clipboard

Static friction gain. The minimum output needed to overcome static friction and start moving. Applied in the direction of desired velocity.

Link copied to clipboard

Velocity gain. Multiplied by the desired velocity to produce the output needed to maintain that velocity against back-EMF and viscous friction.