template<class T>
class controlpp::timevar::LeadLagControl< T >
A Lead-Lag control element with varying sample-times.
Has a continuous transfer function of:
\[
LeadLag(s) = \frac{1 + \frac{s}{\omega_1}}{1 + \frac{s}{\omega_2}}
\]
transformed with the tustin transformation to the following time series:
\[
y_k = \frac{ \left( T_s \omega_2 + \frac{2 \omega_2}{\omega_1} \right) u_k + \left( T_s \omega_2 - \frac{2 \omega_2}{\omega_1} \right) u_{k-1} - \left( T_s \omega_2 - 2 \right)}{ T_s \omega_2 + 2 }
\]
with:
- \(T_s\) The sample-time in seconds
- \(\omega_1\) The characteristic frequency of the phase lead
- \(omega_2\) The characteristic frequency of the phase lag
- \(u_{k}\) and \(u_{k-1}\) are current and previous control inputs
- \(y_{k}\) and \(y_{k-1}\) are current and previous control outputs