Filter: ensure harmonic notch filters are always working

This commit is contained in:
Andy Piper 2024-09-07 16:45:10 +01:00 committed by Peter Barker
parent 4ee5b0ea12
commit a8575e0646

View File

@ -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);
}
/*