Implement lulu filtering for QuickSilver#121
Open
pjpei wants to merge 12 commits intoBossHobby:developfrom
Open
Implement lulu filtering for QuickSilver#121pjpei wants to merge 12 commits intoBossHobby:developfrom
pjpei wants to merge 12 commits intoBossHobby:developfrom
Conversation
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 <1483569698@qq.com> Update src/flight/filter.c Co-authored-by: Hugo Chiang <1483569698@qq.com> 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
f61168d to
72d0555
Compare
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
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! :)