From 7150dde40a6193edcd9fb05f99b0cae87ce9c2ee Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 13 Apr 2022 13:51:56 +1000 Subject: [PATCH] Filter: added RPM2 harmonic notch type --- libraries/Filter/HarmonicNotchFilter.cpp | 2 +- libraries/Filter/HarmonicNotchFilter.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/Filter/HarmonicNotchFilter.cpp b/libraries/Filter/HarmonicNotchFilter.cpp index b2c4e97b4b..a9718fee83 100644 --- a/libraries/Filter/HarmonicNotchFilter.cpp +++ b/libraries/Filter/HarmonicNotchFilter.cpp @@ -78,7 +78,7 @@ const AP_Param::GroupInfo HarmonicNotchFilterParams::var_info[] = { // @DisplayName: Harmonic Notch Filter dynamic frequency tracking mode // @Description: Harmonic Notch Filter dynamic frequency tracking mode. Dynamic updates can be throttle, RPM sensor, ESC telemetry or dynamic FFT based. Throttle-based updates should only be used with multicopters. // @Range: 0 4 - // @Values: 0:Disabled,1:Throttle,2:RPM Sensor,3:ESC Telemetry,4:Dynamic FFT + // @Values: 0:Disabled,1:Throttle,2:RPM Sensor,3:ESC Telemetry,4:Dynamic FFT,5:Second RPM Sensor // @User: Advanced AP_GROUPINFO("MODE", 7, HarmonicNotchFilterParams, _tracking_mode, 1), diff --git a/libraries/Filter/HarmonicNotchFilter.h b/libraries/Filter/HarmonicNotchFilter.h index 4cfd18e48f..636d0fcc95 100644 --- a/libraries/Filter/HarmonicNotchFilter.h +++ b/libraries/Filter/HarmonicNotchFilter.h @@ -73,6 +73,7 @@ enum class HarmonicNotchDynamicMode { UpdateRPM = 2, UpdateBLHeli = 3, UpdateGyroFFT = 4, + UpdateRPM2 = 5, }; /*