calculate

open fun calculate(process: Double, setpoint: 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

setpoint

the expected value