update

open fun update(state: Double, goal: Double = 0.0): Double

Update PID control loop

Parameters

state

New state

goal

open fun update(state: Double, velocity: Double, goal: Double = 0.0): Double

Update PID control loop

Parameters

state

New state

velocity

Current rate of change of the state

goal