calculate

open fun calculate(): Double

Calculates the feedforward from the gains and setpoints.

Return

The computed feedforward.


open fun calculate(current: Double, target: Double): Double

Calculates the feedforward from the gains and setpoints.

Return

controller output

Parameters

current

ignored for a feedforward calculation

target

ignored for a feedforward calculation