-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Don't change P, I and D during FW autotune #7461
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
Conversation
|
Should have been like this from the start. Totally agree with this one! |
|
So time to use this and then make a manual PID tuning guide :D |
|
Totally makes sense! I agree with that request |
|
I'm not sure if this is the right place to mention this but it goes into the same direction of what AT should or should not do:
So i'm at the point where i better don't use AT anymore since v3. Going forward i will install 2.6.1, find with the help of AT my desired FF, upgrade to v3/4 (I looove the permanent servotrim!), manually set the FF and manually do my PID's like in the past - never touch AT again! |
|
@stuwe911 Point 2: You can set the Autotune mode in the CLI to "Limit": set fw_autotune_rate_adjustment=LIMIT |
|
excellent feedback. thank you very much for that valuable info. I'll try this out shortly if the weather permits |
|
@b14ckyy I did some test flights today set to LIMIT. it all worked well! The pitch got changed down but the roll did not go from 330 up to 500 as it does on AUTO. FIXED did just what it says - no changes at all. going forward i will set my default inav code that i put on all new planes to LIMIT for the initial AT flight to get the FF and then never touch AT again. Thanks for that info - it was very helpful! |
|
@DzikuVx will this be merged for the 4.0 release? Just working on my manual tuning video and would like to give the correct advise for 4.0. I have tested a few planes now with new default PID+Autotuned FF and Rates and it works much better than current PI-Tune. |
|
@avsaase this should go 4.0 or not? |
|
I think this can be merged. Autotune is far from perfect with this change but it won't hurt anyone and will make it easier to tune manually. |
|
Added to the release notes. Thanks |
|
@avsaase could you please cherry pick to release branch? |
|
I'll cherry-pick it to the release branch this evening. |
Okay, done. |
|
hi The value of p_roll in pid settings automatically becomes zero after refresh |
Autotune is really only about setting the correct rates and FF so that the rotation rate roughly matches the rate command. It does a decent job of figuring out the correct values but on most flying wings this means low pitch rates and conversely high FF. We currently don't have a real way of tuning P, I, and D so these are set relative to FF. However, with these high FF gains, this means very high P and I, making flights rather bumpy and stiff.
INAV's fixed-wing defaults for P and I are safe for basically all planes, so it is better to just leave them as they are during autotune and let the user tune them manually if he so desires. Once rates and FF are set correctly, P and I are mostly a personal preference thing and not something that needs to be set to a correct value to keep the plane in the air.
I'm still thinking about a way to tune P, I, and D independently but until then I think it is better to just not change them.