Calculate the next output of this control algorithm.
process variable that should be applied to the system
the current value
the expected value