Copter: LOITER_TURNS WP is not center of circle
Testing rc7 I found if WP has type loiter_turns, it's coordinates are not treated as center of loitering circle. Previous path is tangent to circle and loiter_turns WP coords more or less lay on circle.
Some more about desired circle WPs behavior.
These WPs should have specific parameters
1 circle radius,
2 circle turns number (for loiter_turns) which should be non-integer value to allow circle leaving in any point,
OR circle time for loiter_time
3 circling angular speed (signed degrees/sec to include direction),
4 circle YAW mode (do not change yaw or direct yaw to center, may be tangent and outside yaw directions).
When AP sees circling WP in mission it should:
1 fly toward circle center at desired speed until reaching circle radius distance from it
2 start circling according to parameters
3 leave circle at desired turn/angle or desired time towards next WP
Also I think there's no need in LOITER_UNLIM because one may set number of turns or time to 10000 and batteries will exhaust earlier.
thanks for bringing this up. The documentation is unclear about the loiter circle function, and I was wondering how it worked. I agree with your recommendations.
I tested this, and the results were odd. Please see my post on APM:Copter forums for a picture of my flight path. http://ardupilot.com/forum/viewtopic.php?f=25&t=5522
Thanks for the report.
This commit resolves the main issue reported (the subject of this issue): https://github.com/diydrones/ardupilot/commit/e6d2692eabfc41f4ab17c7163be0e73aa56a2693
This change will go out with the first AC3.2 release candidate and I'll add it to the list of to-be-tested features.
I've moved the items that were added on top of this to a new issue (#990)