Leonard and I spent the past few days getting rid of various twitches. The places where we were able to make progress were:
· Twitch when changing from Hybrid to Loiter (both vertical and horizontal twitches were found and fixed)
· Twitch when flying at high speed and changing into Loiter, Guided, RTL (and probably Auto).
Attached is a graph of the difference in the navigation controller’s desired pitch angle when someone engages RTL from a high speed.
In the “BEFORE” diagram you can see the vehicle starts the test by flying forward at full speed, leaning 45deg forward. RTL is engaged and the vehicle immediately leans completely back at 45deg. It’s at this point that badly tuned copters completely flip over. The vehicle then find it’s slowed down too much and reduces its lean back and eventually it finds that it’s stopped too quickly and actually leans forward again a bit before returning home.
In the “After” diagram you can see that the vehicle first reduces its lean angle quickly from 45deg -> 20 deg. At this point the wind drag alone slows the copter very quickly. It keeps reducing its lean angle and then finally it leans back for a moment to stop at the target stopping point and then leans back again as it returns home. It’s still not ideal but it’s much better than what we had before.
By the way, there’s a new parameter called WPNAV_LOIT_JERK which controls the change in acceleration while in Loiter mode. Currently it’s defaults to 1000 (10m/s/s/s) but you can try it at 2000 if you find it sluggish.
-Randy
Randy would these changes impact the twitching at waypoints in Auto?
Regards,
Maurice
--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Maurice,
I’m not sure. There is still a small twitch as it passes through spline waypoints and I believe we know the cause of that and will fix it before the big AC3.2 release. I’m less sure about straight line waypoints but I’ll run it through the simulator and see. Is this your report about the issue for straight line waypoints?
https://github.com/diydrones/ardupilot/issues/1012
-Randy
Holger,
Thanks for the testing.
Any chance you have a dataflash log file? In particular I’d like to see what’s happening during the RTL. I haven’t been able to reproduce an issue but that doesn’t mean it’s not there, I just can’t find it.
-Randy
--