Low Pass Filter

A low pass filter block is used to filter an input signal. The output signal value depends on the current and the past input signal value, according to the equation

valOut = valin * alpha + valprev * (1 - alpha) 

The filter can be disabled. In this case the current input will be directed to the output.