mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
AP_HAL: increase maximum allowed notch count to make way for quintuple notches
(cherry picked from commit 1e8cb4edf57385b403f1b8e276557cd5f7ad52fc)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user