Browse Source

Filter: add harmonic notch option to run at loop rate

c415-sdk
Andy Piper 4 years ago committed by Andrew Tridgell
parent
commit
21d24ebc9d
  1. 4
      libraries/Filter/HarmonicNotchFilter.cpp
  2. 1
      libraries/Filter/HarmonicNotchFilter.h

4
libraries/Filter/HarmonicNotchFilter.cpp

@ -79,8 +79,8 @@ const AP_Param::GroupInfo HarmonicNotchFilterParams::var_info[] = { @@ -79,8 +79,8 @@ const AP_Param::GroupInfo HarmonicNotchFilterParams::var_info[] = {
// @Param: OPTS
// @DisplayName: Harmonic Notch Filter options
// @Description: Harmonic Notch Filter options. Double-notches can provide deeper attenuation across a wider bandwidth than single notches and are suitable for larger aircraft. Dynamic harmonics attaches a harmonic notch to each detected noise frequency instead of simply being multiples of the base frequency, in the case of FFT it will attach notches to each of three detected noise peaks, in the case of ESC it will attach notches to each of four motor RPM values.
// @Bitmask: 0:Double notch,1:Dynamic harmonic
// @Description: Harmonic Notch Filter options. Double-notches can provide deeper attenuation across a wider bandwidth than single notches and are suitable for larger aircraft. Dynamic harmonics attaches a harmonic notch to each detected noise frequency instead of simply being multiples of the base frequency, in the case of FFT it will attach notches to each of three detected noise peaks, in the case of ESC it will attach notches to each of four motor RPM values. Loop rate update changes the notch center frequency at the scheduler loop rate rather than at the default of 200Hz.
// @Bitmask: 0:Double notch,1:Dynamic harmonic,2:Update at loop rate
// @User: Advanced
// @RebootRequired: True
AP_GROUPINFO("OPTS", 8, HarmonicNotchFilterParams, _options, 0),

1
libraries/Filter/HarmonicNotchFilter.h

@ -82,6 +82,7 @@ public: @@ -82,6 +82,7 @@ public:
enum class Options {
DoubleNotch = 1<<0,
DynamicHarmonic = 1<<1,
LoopRateUpdate = 2<<1,
};
HarmonicNotchFilterParams(void);

Loading…
Cancel
Save