-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Pr rc filtering #6440
Pr rc filtering #6440
Conversation
Not finished yet! |
6dc1988
to
3542716
Compare
@MaEtUgR This looks good. If its test flown and ready to go it can be applied. |
d693385
to
71dda2c
Compare
Did a successful flight test yesterday. Further testing? Something I realized: |
Any interest in generalizing expo or do you only want it for MC position? |
I'm totally interested! Sorry for putting it there directly, it's urgent now. Would on the long term be nice to have a central point for such input tweaks such that they are available with a joystick and every mode but I would still keep the option to configure them differently dependent on the flight mode. Here is the first simple formula version: https://github.com/PX4/Firmware/blob/71dda2cf4462b2a15a2c8fdfd3934be1bca6bc5a/src/lib/mathlib/math/Expo.hpp |
71dda2c
to
e1f928f
Compare
rebased and did further tests today.
|
…ul samplerate and cutoff frequency yet
…z hardcoded for testing
controlled by parameter MPC_XY_MAN_EXPO that is disabled (0) by default
…ilter on change, constrain output Filter gets unstable if cutoff is above sample rate/2. Filter initial frequencies do not matter a lot because they get replaced by parameters anyways. Filter delay values get reset to 0 when the filter is reconfigured otherwise there can be some weird spikes in the output. Filter output gets constrained to the range again because of possible overshoot.
e1f928f
to
0c36da1
Compare
Awesome! |
No description provided.