Switch output between two constants with hysteresis
Blocks/Nonlinear
This block transforms an input signal u (left) into an output signal y (right) which switches between two constants yOn and yOff with hysteresis:
* When the output was yOff and the input becomes greater than uOn, the output switches to yOn.
* When the output was yOn and the input becomes less than uOff, the output switches to yOff.
The start value of the output is defined by parameter y_start.