High-pass filter (2nd order)
control.highpass2
Second-order high-pass filter s^2 / (s^2 + (w0 / Q) s + w0^2). It blocks constant inputs and passes frequencies above w0. The default Q of 1 / sqrt(2) gives a Butterworth response.
Ports
| Name | Domain | Direction |
|---|---|---|
u | signal | in |
y | signal | out |
Parameters
| Name | Unit | Default | Range | Description |
|---|---|---|---|---|
w0 | rad/s | 10 | 0 to ∞ | Corner frequency |
Q | 1 | 0.7071067811865476 | 0.000001 to ∞ | Quality factor |
Variables
| Name | Unit | Description |
|---|---|---|
x1 | 1 | Low-pass filtered input |
x2 | 1/s | Rate of change of x1 |
Equations
der(x1) = x2 der(x2) = w0 ^ 2 * (u - x1) - w0 / Q * x2 y = u - x2 / (Q * w0) - x1