calculate

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

Calculate the next output of this control algorithm.

Return

process variable that should be applied to the system

Parameters

process

the current value or first setpoint

setpoint

the expected value or second setpoint