-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
possible regression in quadplane attitude controller? #29060
Comments
I chatted to @andyp1per and he thought this change is a possible cause? |
This is only used in copter guided so I can't see how this could be a factor. Have I missed something? |
I doubt you've missed anything, Andy and I only had a very quick look, sorry |
Ok, so the difference in green desired rate lines where the top appears to be experiancing limiting but the lower isn't is due to the source of the rate command. In the first graph the rate command is coming from the attitude error and that is limited. In the second it comes from the commanded attitude and is not limited. |
I maybe have seen a similar problem today with my VTBird tilt rotor. As with yours I haven't flown it for a long time, and it had a "not great" (but flyable) tune on it, but I put a new build based on master on it for some other testing I'm I'm doing and just tried to do a basic hover a couple of meters off the ground. It was scary. Log of 4.7.0 (+ my "interlock" code) - https://www.dropbox.com/scl/fi/tvyeji5xwl80f6gxwz5bd/log_164_2025-1-15-11-35-08.bin?rlkey=o3nbav6p6t11h5gaeqr0lorf9&st=4oz9hglz&dl=0 Log of 4.5.7 (official from MP) - https://www.dropbox.com/scl/fi/amj418e15qbac4lgk5sib/log_166_2025-1-15-11-59-10.bin?rlkey=lp2mm44hwhc7jdmlk6ayj3y0t&st=8nz0lxat&dl=0 There is a slow oscillation on the yaw tune, which I've never been able to break on this plane. |
I have went over these logs too and it does look like the output is messier. It isn't night and day but the old code looks like it is generally softer in it's response. It would be good to compare the Alt_Hold performance to seperate attitude control from position control. Looking through the code changes there is a reasonably significant number of changes but I can't find anything that should cause a performance change: Attitude controller is primarily naming but with a one loop movement of the update_attitude_target(); This should not do anything. I got nothing, other than trying to break this down and comparing Alt_hold and Loiter to see if this is more closly related to attitude or position control would be interesting. |
The weather is looking nasty for the next week at least. I'll try to fly it in QHover/AltHold as soon as I can. |
Given it's a tilt-rotor, this might be important. |
I've had some strange and quite severe oscillations with a GriffinPro tilt quadplane recently when running master. The oscillations are bad enough that I am at risk of losing the aircraft. The odd thing is that running the same parameters on 4.5.7 I have not been able to reproduce the issue.
There are some complicating factors, so it isn't absolutely certain this is a regression, but I think it is worth looking into.
This is what happens on master:
notice the increasing amplitude of oscillation in QLOITER. Changing to QHOVER did allow it to slowly recover, but still huge overshoots.
This is the same parameters on 4.5.7:
there is still some overshoot, but not dangerous.
the complicating factors are:
Some things I've looked at:
I haven't tested the 4.6.0 beta. To do that safely I think I'll need to retune first to get a safe set of gains, then use a script to switch to these gains to see if 4.6.0 is affected.
Logs are here:
http://uav.tridgell.net/tmp/GriffinProOscillation/
The text was updated successfully, but these errors were encountered: