AP_HAL: increase maximum allowed notch count to make way for quintuple notches

(cherry picked from commit 1e8cb4edf57385b403f1b8e276557cd5f7ad52fc)
This commit is contained in:
Andy Piper
2026-07-29 18:12:55 +10:00
committed by Peter Barker
parent 25c6b624f7
commit c744dde845
+3 -3
View File
@@ -333,16 +333,16 @@
#if defined(STM32H7) || CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
// Enough for a double-notch per motor on an octa using three IMUs and one harmonics
// plus one static notch with one double-notch harmonics
#define HAL_HNF_MAX_FILTERS 54
#define HAL_HNF_MAX_FILTERS 78
#elif defined(STM32F7)
// Enough for a notch per motor on an octa using three IMUs and one harmonics
// plus one static notch with one harmonics
#define HAL_HNF_MAX_FILTERS 27
#define HAL_HNF_MAX_FILTERS 39
#else
// Enough for a notch per motor on an octa quad using two IMUs and one harmonic
// plus one static notch with one harmonic
// Or triple-notch per motor on one IMU with one harmonic
#define HAL_HNF_MAX_FILTERS 24
#define HAL_HNF_MAX_FILTERS 30
#endif
#endif // HAL_HNF_MAX_FILTERS