-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add D-term to control loop on fixed wing #6669
Conversation
This test was done with a Dart250G. This clip shows two back to back flights. The first part is with PIFF and the second part is PIDFF. Its been windy here of late and its nice to see the Dart tamed a little under these conditions. The servo frame rate was set to 160hz. Its obviously impossible to make a fixed wing as stable as a quad. With that considered, the results of the test on this airframe seem promising. PIFF_PIDFF.mp4 |
@rts18 could you share the Dgains you used for the test? |
These are the setting @rts18 sent me via RCG pm:
I hope to test fly this myself this weekend. |
@DzikuVx, what do I do with the commits that make the D and FF gains adjustable via the osd menu? I initially worked on that in the same branch so the commit history is a bit confusing. Is it not better to just push it to this branch? Testing this feature when the only way to change the gains is the CLI is a PITA anyway. |
The settings @avsaase pasted, show that I focused on the roll axis D gain. The Dart250 showed no bad tendencies on the pitch axis. |
Awesome! Thanks Pawel. |
I'm actually in the middle of tuning my race wing (CTH Rebel 40") and could use the D term to help dampen the response on sharp stick movements. Configured for 650 deg/s on the roll axis but getting a decent bit of bounce-back. Running good quality digital servos at 330Hz so it may be able to take advantage of this. I'll give this a shot the next time the weather allows. |
@jeffkub let us know how it went. On my Dart 250 I increased the P to ten times what autotune gave me, and set D equal to P. I also set |
Managed to get a tuning session in yesterday - added in a bit of d term and saw some notable improvement in the handling of the roll axis. Here was my tune at the start of the day. Here it is after adding d-term and a few tweaks with these settings
I'll have to give |
Closes #3732 (multirotors now have CD so FF is no longer needed)
I have not tested this yet, but @rts18 has and says it works well. I hope he can add his findings here.