Checks if the ySet
value is legal by checking if
the device can either be turned on or off,
depending on which state it was in.
The output yOut
equals ySet
, if the device
ySet
is greater
than ySet_small
ySet
is 0
If the device is on and should turn off, but does not exceed
the minimal on-time (if active), yOut
equals min(ySet, ySetMin)
.
If the device is off and should turn on, but exceeds the maximal
cycle rate (if active) or violates the minimal
off-time (if active), yOut
equals 0.