I am currently integrating a C-Code (written by a third person) in a Simulink model. In the C-Code various sensor signals are filtered, using a PT1 filter with the following equation:
$$y(t) = \dfrac{u(t) + Cy(t-1)}{C + 1}$$
Where $y(t)$, $u(t)$ and $C$ are the output (the filtered signal), input and a factor applied for each signal individually, respectively.
Looking at the step function response, I can see a typical PT1-behaviour with a gain factor of 1.
I cannot figure out the derivation of this function from the general formulation (the differential equation) of a PT1, which is:
$$Ty'(t) + y(t) = Ku(t)$$
Can any of you guys help me out?