-
Notifications
You must be signed in to change notification settings - Fork 52
Implement lulu filtering for QuickSilver #121
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
Open
pjpei
wants to merge
12
commits into
BossHobby:develop
Choose a base branch
from
pjpei:lulu
base: develop
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.
Open
Conversation
This file contains hidden or 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
DusKing1
reviewed
Dec 26, 2024
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting thing.
DusKing1
reviewed
Dec 26, 2024
bkleiner
requested changes
Jan 2, 2025
8378e8e to
8b6c562
Compare
6bd7e3e to
8ed66b9
Compare
276c753 to
2e71911
Compare
"Midpoint" is expo origin/pivot, not a remap where X=0.5 results in Y=mid
Fixed not initializing window size Update LICENSE Restored licence after thinking about it Update src/flight/filter.c Thanks for the suggestion! Co-authored-by: Hugo Chiang <[email protected]> Update src/flight/filter.c Co-authored-by: Hugo Chiang <[email protected]> Implemented changes as requested by Hanfer lulu: use union, add coeff function, optimize for constant substitution
351c65c to
663b6a6
Compare
25bf5fe to
429006a
Compare
ad8b27a to
88270fe
Compare
de390bf to
1dbaf94
Compare
6290bdb to
c3fac20
Compare
f5f57bd to
f101fc8
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.
Hi! Thanks for considering this contribution!
I have found this filter works well with low latency in combination with a dynamic gyro filter and a single DTerm filter.
The below is a bad spot of the filter shown, but given the latency I believe this is quite nice even with that taken into account. It excels at high throttle but when dropping the throttle from high to low quickly has a slight wobble if the dynamic gyro isn't enabled. If it is enabled, it works great!
The frequency is more of an indication and doesn't represent anything sensible, really. I recommend starting with 160Hz and adjusting by 30hz at a time upwards up to 250 or down to 100 depending on quad size.
This thing is heavy on cpu compared to the PT series filters so be aware of that, but QuickSilver seems to handle that perfectly.
See the inav pull request for some additional info:
iNavFlight/inav#10145
Also let me know if there are any questions or adjustments I need to make still! :)