calculate
open fun calculate(position: Measure<Angle>, velocity: Measure<Velocity<Angle>>, acceleration: Measure<Velocity<Velocity<Angle>>>): Double
Calculates the feedforward from the gains and setpoints.
Return
The computed feedforward.
Parameters
position
The position setpoint.
velocity
The velocity setpoint.
acceleration
The acceleration setpoint.
Calculates the feedforward from the gains and velocity setpoint (acceleration is assumed to be zero).
Return
The computed feedforward.
Parameters
position
The position setpoint.
velocity
The velocity setpoint.
Implicit feedforward of assumed radians unit. Assumed acceleration of zero.
Return
controller output
Parameters
position Radians
radians of position setpoint
velocity Radians Per Second
radians/sec of velocity setpoint