-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Convert racer joystick rates to PX4 acro rates #9591
Comments
That's a great idea. |
I realized existing FCs also have differences and I found an existing easy to use open source tool which already converts between them and visualizes the result: https://apocolipse.github.io/RotorPirates/ I could add PX4 rates and we can link to it in the documentation as soon as I understand where all the calculations are done: apocolipse/RotorPirates#4 That's more future proof because it can directly be maintained if anything changes for any FC in the future. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The maintainer of the value converter repo finally answered me now and I'll add the PX4 stick mapping to https://apocolipse.github.io/RotorPirates/ in a pr. |
PR for this now here: apocolipse/RotorPirates#7 |
Very cool! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Recently I looked into the rate calculation of betaflight and it's in theory slightly different because they use an x^4 term as expo instead of x^3 like we do. But it's in practise totally different because they still use these totally unintuitive configuration parameters that all depend on each other... I think a first step is to write both formulas down clearly and then figure out an approximate coefficient transformation. |
PX4 Betaflight The extracted formula without corner case handling is: So we need to convert the scaling and the expo to approximate x^4. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
This is quite cool! And maybe worth keeping it open 🙌 |
I think it would be useful to support racers who come from a different FC to test PX4 and let them convert their existing rates in cleanflight betaflight fork parameters described here https://oscarliang.com/rc-roll-pitch-yaw-rate-cleanflight/ to our better tunable solution.
Like I promised here
#9358 (comment)
#9358 (comment)
I provide the calculation script and it would probably be easiest to just run it on a website but best to include the functionality in QGC.
FYI @bkueng
The text was updated successfully, but these errors were encountered: