Filter: ensure harmonic notch filters are always working
This commit is contained in:
parent
4ee5b0ea12
commit
a8575e0646
@ -191,6 +191,8 @@ void HarmonicNotchFilter<T>::init(float sample_freq_hz, HarmonicNotchFilterParam
|
||||
NotchFilter<T>::calculate_A_and_Q(center_freq_hz, bandwidth_hz / _composite_notches, attenuation_dB, _A, _Q);
|
||||
|
||||
_initialised = true;
|
||||
// ensure static notches are allocated and working
|
||||
update(center_freq_hz);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user