A PT1 (proportional time first order) filter (=low-pass element of order 1), with varying smaple-time.
More...
template<class T>
class controlpp::timevar::PT1Control< T >
A PT1 (proportional time first order) filter (=low-pass element of order 1), with varying smaple-time.
With the continuous transfer function:
\[
\text{PT}_{1} = \frac{K}{1 + \frac{s}{\omega}}
\]
Discretised with the tustin transformation:
\[
s = \frac{2}{T_s} \frac{1 - z^{-1}}{1 + z^{-1}}
\]
to the sample series:
\[
y_k = \frac{a (u_k + u_{k-1}) - b y_{k-1}}{c};
a = K \omega_ * T_s
b = \omega * T_s - 2
c = \omega * T_s + 2
\]
with:
- \(K\) The gain of the low-pass
- \(T_s\) The sample-time in seconds
- \(\omega\) The -3dB bandwidth of the low-pass
- \(u_k\) and \(u_{k-1}\) the current and previous control input
- \(y_k\) and \(y_{k-1}\) the current and previous control output