-
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
Update default parameters #12543
Update default parameters #12543
Conversation
- generally better attitude tracking - much better altitude control immediately after takeoff (hover throttle offset) - faster landing detection Signed-off-by: RomanBapst <bapstroman@gmail.com>
- we have set the maximum yaw-rate MC_YAWRATE_MAX to 200 degrees and it makes senses to leave a bit of margin between what the user can demand and what the limits of the vehicle are Signed-off-by: RomanBapst <bapstroman@gmail.com>
- vehicle will fly less aggressive - it does not make sense to set the lower acceleration limit to something that exceeds gravity if most of the vehicles do not support reverse thrust Signed-off-by: RomanBapst <bapstroman@gmail.com>
Signed-off-by: RomanBapst <bapstroman@gmail.com>
Signed-off-by: RomanBapst <bapstroman@gmail.com>
Signed-off-by: RomanBapst <bapstroman@gmail.com>
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.
lgtm
Just one comment to think about: |
@Stifael I agree that in an ideal world this would be correct, but most likely the reaction of the user will be: "Oh, it feels jerky (we hear that a lot), the firmware is bad". We want to make sure that the user experience is good the first time. The experienced user knows what to do and the user that has a first good experience might take time to further tune the vehicle. |
But that is exactly my point. I think in an ideal world you can find default parameters that make sense, but in reality, it is pretty much impossible to find values where the user will have an out-of-the-box good experience. How did you come up with MPC_ACC_HOR = 3 vs 10? Is there a reference platform that a new user can refer to? |
@Stifael Those parameters used to design the trajectories are good for a drone up to ~25kg with average thrust/weight ratio (~2:1). It might feel "too smooth" for a small drone, but we rarely heard someone complaining that the drone flies too smoothly. Why manual and auto accelerations of 5 and 3m/s2, simply because this limits the demanded tilt to about 30 and 20 degrees, respectively. 10m/s2 generates a tilt of ~45 degrees and the maximum tilt |
No, I don't have a strong opinion, Just know that 3 is quite low and that it is not only weight dependent. I personally can't really contribute much here anyway, given that I can't evaluate what reasonable good default values are. |
@PX4/testflights Can you please test those parameters on several vehicles please? (not necessarily different autopilots, just different drones) |
Tested on PixRacer V4:Modes Tested Position Mode: Good. - Procedure Notes: Logs https://review.px4.io/plot_app?log=7c30a7fe-b46c-4e5c-b942-daf341d21799 https://review.px4.io/plot_app?log=5267c015-5f01-4ecc-bcee-d5c0e5e768d9 Tested on Pixhawk 2 Cube V3:Modes Tested Position Mode: Good. - Procedure Notes: Logs https://review.px4.io/plot_app?log=ba59d64e-20cb-4876-b505-0863acdaffb1 |
See #12361 for context.
Also see individual commit message for some explanations.
fixes #12361