Scroll to navigation

BIQUAD(9) HAL Component BIQUAD(9)

NAME

biquad - Biquad IIR filter

SYNOPSIS

loadrt biquad [count=N|names=name1[,name2...]]

DESCRIPTION

Biquad IIR filter. Implements the following transfer function: H(z) = (n0 + n1z-1 + n2z-2) / (1+ d1z-1 + d2z-2)

FUNCTIONS

PINS

Filter input.
Filter output.
Filter enable. When false, the in pin is passed to the out pin without any filtering. A transition from false to true causes filter coefficients to be calculated according to the current type and the describing pin and parameter settings
When false, indicates an error occurred when calculating filter coefficients (require 2>Q>0.5 and f0>sampleRate/2)
Filter type determines the type of filter coefficients calculated. When 0, coefficients must be loaded directly from the n0,n1,n2,d1 params. When 1, a low pass filter is created specified by the f0,Q pins. When 2, a notch filter is created specified by the f0,Q pins.
The corner frequency of the filter.
The Q of the filter.
1st-delayed internal state (for debug only)
2nd-delayed internal state (for debug only)

PARAMETERS

1st-delayed denominator coef
2nd-delayed denominator coef
non-delayed numerator coef
1st-delayed numerator coef
2nd-delayed numerator coef

LICENSE

GPL

2022-04-06 LinuxCNC Documentation