-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Take a pass at the tuning dialog and make it easier to use and more prominent #8625
Comments
@MaEtUgR @Stifael Would be great to have your input here. The sliders are controlled by meta data in PX4 if no extra min/max are provided, so adjusting the min / max values in params should change them. The idea behind the roll / pitch sliders is to give users a tiny bit of wiggle room without needing to explain PID params to them. We might be able to come up with something better now. https://github.com/PX4/Firmware/blob/8d39f4e4a167150c8904bbd6b389828c1e78cb8a/src/modules/mc_att_control/mc_att_control_main.cpp#L514-L524 First step should be to validate that ALL the important params are on here and that their min and max make sense. We also should consider adding a scale to these sliders. |
Couldnt we deduce hover throttle? |
Not in a safe way. It will take many months to devise any sort of automatic approach that is reliable. If you get this wrong you make the drone completely ballistic and the user has no idea what is going on. |
not even when an actual hover is detected? |
|
@sanderux Let's not clutter this here with the discussion, but I'm not talking about the average setup. Think of a racer that has vibration issues and where the auto-tune slowly creeps away. It's these corner cases that are problematic. |
Most importantly the sliders need a scale and it should be possible to clearly see the exact value even for a non-developer. In my experience a lot of people in the community are focused on exact numbers after they tuned to be able to reproduce and compare (even in cases whaere it makes no sense at all). I don't know what parameters roll and pitch sensitivity map to but the parameters I tune first "to get stable flight" are the roll and pitch rate P gains ( About the hover throttle I think it could make sense to generate a suggested value. It should be rather easy to read it during the first hover flight. We recently flew a racer with the default hover thrust (50%) and the tuned value ended in the range of ~20-25%. The only "real" problem we had with the default value was first stage landing detection in flight and no landing detection when landing.
|
I think it is also important to clearly specify what effects the pitch/roll slider has. I fear that the user ends up using the slider to achieve a less aggressive flight performance instead of adjusting higher level parameters that control acceleration and brake, which are on by default. |
Very good points. Let's see what we can do quickly. @Stifael Could you provide a list of parameters that we should incorporate? |
MPC_ACC_HOR_MAX: MPC_ACC_HOR: MPC_DEC_HOR_SLOW: MPC_JERK_MAX / MPC_JERK_MIN: MPC_ACC_UP_MAX: MPC_ACC_DOWN_MAX" Probably it make sense to add it to documentation together with graphs. |
Could you send a PR for docs and we take the QGC UI from there? |
I am working on a document that covers position control details. I would like to finish that first, otherwise I have to redo it twice. |
@Stifael How do we stand there? |
https://docs.px4.io/en/advanced_config/advanced_mc_position_tuning.html |
I think this issue here becomes even more important with this feature addition |
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. |
Closing as stale. |
The user experience dramatically depends on a few core settings to be correct, including the hover throttle. We should take a pass at the QGC dialog and make sure that it captures the important aspects.
The text was updated successfully, but these errors were encountered: