SimpleFeedforward
A simple feedforward controller for velocity control.
Feedforward control predicts the motor output needed to achieve a desired motion, without waiting for error to accumulate (unlike feedback/PID control). This is typically used in combination with a feedback controller for best results.
The feedforward equation is:
output = kS * sign(velocity) + kV * velocity + kA * accelerationWhere:
kScompensates for static frictionkVcompensates for back-EMF and viscous frictionkAcompensates for inertia during acceleration
Parameters
The SimpleFFCoefficients containing kS, kV, and kA gains.
Constructors
Functions
Calculates the feedforward output from a MotionState.
Calculates the feedforward output for a desired velocity and acceleration.
Calculates the maximum achievable acceleration given voltage and velocity constraints.
Calculates the maximum achievable velocity given voltage and acceleration constraints.
Calculates the minimum achievable acceleration given voltage and velocity constraints.
Calculates the minimum achievable velocity given voltage and acceleration constraints.