Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plane: backport notch filter rework changes to 4.4.x #26099

Open
wants to merge 15 commits into
base: Plane-4.4
Choose a base branch
from

Conversation

tridge
Copy link
Contributor

@tridge tridge commented Jan 30, 2024

this is for users wanting to test the changes on plane 4.4.x
this PR is not intended to be merged

andyp1per and others added 9 commits January 31, 2024 08:58
this has helped find multiple bugs
this gets the right number of notches on quadplanes, but is still very
bad in fwd flight
do all frequenct clamping in one place in
set_center_frequency(). Allow for zero frequency to disable the
notch. Add an option to treat inactive RPM source as min frequency

# Conflicts:
#	libraries/Filter/HarmonicNotchFilter.cpp
#	libraries/Filter/NotchFilter.h
moved the claiming down into HarmonicNotchFilter

# Conflicts:
#	libraries/AP_Vehicle/AP_Vehicle.cpp
and pass params object down into HarmonicNotchFilter

# Conflicts:
#	libraries/AP_InertialSensor/AP_InertialSensor.cpp
fill in a parameters structure

# Conflicts:
#	libraries/Filter/HarmonicNotchFilter.h
this also fixes the uint8_t storage of a number than can be greater
than 256. Max total notches in a single HarmonicNotchFilter is
currently 12*16*3 for 12 ESCs, with INS_HNTCH_HMNCS=0xFFFF and triple
notch
this prevents duplication of the logic for the priority of the double
notch vs the triple notch option
# Conflicts:
#	libraries/AP_Logger/AP_Logger_Backend.cpp
@tridge tridge force-pushed the pr-notch-rework-4.4 branch from 5f7fd62 to c7a6dc6 Compare February 2, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants