calculate

open fun calculate(): Double

Calculates the next output of the PIDF controller.

Return

the next output using the current measured value via calculate.


open fun calculate(pv: Double, sp: Double): Double

Calculates the next output of the PIDF controller.

Return

the next output using the given measured value via calculate.

Parameters

pv

The given measured value.

sp

The given setpoint.


open fun calculate(pv: Double): Double

Calculates the control value, u(t).

Return

the value produced by u(t).

Parameters

pv

The current measurement of the process variable.