-
Notifications
You must be signed in to change notification settings - Fork 19.7k
autotest: add autotest for basic does-not-die NAV_LOITER_TURNS mission item #31379
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
base: master
Are you sure you want to change the base?
Conversation
|
I guess this is actually correct, it's just the tangential entrance to the circle makes it look strange. |
|
I discussed the lack of closure here with Leonard. He suggests not to worry about this at this point as the new circular-waypoint code should fix this (it uses different maths to work out how far you have progressed). I did have an idea we could update how far we've been based on actual trig at 10Hz - but seems overkill if Leonard's going to fix things anyway. (the basic problem is that we're integrating an angular velocity and it doesn't work particularly well!) |
|
I'll give this a test, thanks! |
5d6c72e to
e3cf227
Compare
e3cf227 to
49e1af3
Compare
I've added a patch to address this - and another example test which starts the Copter off on the circumference of the loiter circle. It climbs to the circle height as wp navigation and then starts to circle.
Well... it happens to return you the point on the circle - so I just took the length :-) |
f05f7a1 to
dc598d1
Compare
dc598d1 to
95175e6
Compare
we use this result when projecting in 2D later on
…ter' This should give more predictable movement for a vehicle told to circle on exactly where it is - we will more-often choose to reverse backwards ono the circle rather than projecting the vehicle's vector-to-center back onto the circumference
If the vehicle's stopping point is (1, 0, 0) and the center is at (0, 0, 0) then (stopping_point - center) is (1, 0, 0) - but the vector *to* the center *from* the stopping point is clearly (-1, 0, 0). So rename the variable to invert it. Saves changing the maths
95175e6 to
537a1c3
Compare
|
Now closes #13161 because of the added epsilon! |


Just takes off and does 1 circle. Doesn't actually explicitly test anything yet.
For some values of "1 circle". If we round up (so to speak).