-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
tridge
wants to merge
15
commits into
ArduPilot:Plane-4.4
Choose a base branch
from
tridge:pr-notch-rework-4.4
base: Plane-4.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+475
−144
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
max is more than 256
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
use sqrt() adjustment from Leonard
5f7fd62
to
c7a6dc6
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
this is for users wanting to test the changes on plane 4.4.x
this PR is not intended to be merged