From 0103776d83b0efa6961b64fa55408b44757e1709 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 9 Jul 2022 09:01:28 +1000 Subject: [PATCH] Filter: fixed test_notchfilter for the change in allocate_filters() changed for triple notch --- libraries/Filter/tests/test_notchfilter.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libraries/Filter/tests/test_notchfilter.cpp b/libraries/Filter/tests/test_notchfilter.cpp index 4d1b90a149..4cc0c0dbf6 100644 --- a/libraries/Filter/tests/test_notchfilter.cpp +++ b/libraries/Filter/tests/test_notchfilter.cpp @@ -86,7 +86,7 @@ TEST(NotchFilterTest, HarmonicNotchTest) const float test_amplitude = 0.7; const double dt = 1.0 / rate_hz; - bool double_notch = false; + bool double_notch = true; HarmonicNotchFilter filters[num_test_freq][chained_filters] {}; struct { double in; @@ -105,7 +105,7 @@ TEST(NotchFilterTest, HarmonicNotchTest) for (uint8_t i=0; i