Hi Bill,
.....
This mail follows your comment about excessive values of the yaw rate feedback gain.
I quite sure that the lateral guidance needs more damping, just look at all the kml files showing the planes wobbling over their course leg.
My simulator confirms this speculation.
One way to dampen this motion is to increase the yaw rate feedback, but then an instability may arise, as you have stated it in your comment.
I have found a way to dampen the course-over-ground control while alleviating the yaw rate feedback.
Today the yaw rate feedback is used for the Dutch roll damping and also for the cog damping, but I think it should not because the cog is not exactly the heading.
So I have extracted a course over ground from the dead reckoning routine and have computed the cog error.
I have then added a term to the commanded cog, function of the cog error difference. I works very well.
What do you think ?
The folling lines of code are executed before the computation of the desired heading (before the wind is taken into account):
% Dead reckoning: compute cog
IMUcog[0] = atan2(IMUintegralAcceleration[1], IMUintegralAcceleration[0]);
% Save previous cog error
dkhi_old = dkhi ;
% Compute new cog error
dkhi = khic - khi ;
if dkhi > PI
dkhi = dkhi - 2.*PI ;
elseif dkhi < -PI
dkhi = dkhi + 2.*PI ;
end ;
% Compute cog error deviation
ddkhi = dkhi - dkhi_old ;
% Rate limiter
MAX_RATE = .0005 ;
if ddkhi > ddkhi_old + MAX_RATE
ddkhi = ddkhi_old + MAX_RATE ;
elseif ddkhi < ddkhi_old - MAX_RATE
ddkhi = ddkhi_old - MAX_RATE ;
end ;
ddkhi_old = ddkhi ;
% Apply damping to desired course over ground
KD = 20. ;
khic = khic + KD*ddkhi ;
Best regards,
Paul
--
You received this message because you are subscribed to the Google Groups "uavdevboard-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uavdevboard-d...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Maybe it also helps with high aspect ratio wings with lots of aileron adverse yaw.
What happens if we do an intentional sideslip for landing control? Does heading always settle to cog with some time constant or does it stay correct due to lateral acceleration?
/Matt
Bill and al,I just found this google discussion group.Thanks for the kind words. I'm just trying to help a little.I'm stunned at the amount of work you guys are able to spend on this project.-Paul