ardupilot icon indicating copy to clipboard operation
ardupilot copied to clipboard

Copter: LOITER_TURNS WP is not center of circle

Open msk7-ripe opened this issue 13 years ago • 3 comments

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.

msk7-ripe avatar Nov 24 '13 10:11 msk7-ripe

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.

msk7-ripe avatar Nov 24 '13 19:11 msk7-ripe

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

britdavis avatar Jan 08 '14 17:01 britdavis

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)

rmackay9 avatar Apr 16 '14 11:04 rmackay9