-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
AP_Follow: change to using position-from-origin internally #27250
base: master
Are you sure you want to change the base?
AP_Follow: change to using position-from-origin internally #27250
Conversation
5be0433
to
e4039d9
Compare
e4039d9
to
9daa5ac
Compare
9daa5ac
to
57860f0
Compare
Lokks like a relatively small change:
|
57860f0
to
edf026e
Compare
edf026e
to
e7de2cc
Compare
Fixed problems caused by rebase on top of function rename in master |
e7de2cc
to
7e5a829
Compare
I think we just need to be careful that we cover all situation:
|
There are Lua bindings for some of these functions so they are not "internal". |
What does that mean? |
Currently the position jumps each time we get a new update and the interpolation between updates is very basic. I have been using real-time S-Curves to generate a kinematicly consistent interpolation of the follow me data. I am doing this in pos/vel/accel and heading/heading_rate. This lets you do wonderfully smooth follow-me behaviours. It also acts as a filter for position / velocity noise in your follow-me data. |
I'm relying on these methods returning lat/long via the Lua bindings as I use the results to call back in via the new MAVLink DO_REPOSITION interface to point the vehicle at the calculated target location. If these change to returning position relative to origin, will my Lua scripts break?
|
7e5a829
to
c4c6c20
Compare
Yes, they absolutely would break. Really, really badly. OTOH, you might have missed the word "internally" in the PR title. We have no intention of breaking everybody's (eg.) Plane ship-landing scripts by changing the existing "location" bindings, but we will almost certainly add some "position" (offset-from-origin) bindings to LUA at some stage. |
Thanks @peterbarker - I'm really looking forward to this feature going in. After talking to @lthall - now I understand what it's doing, I expect kinematic extrapolation to make a significant improvement to the plane follow Lua function too. |
This work sponsored by Freespace Operations
In preparation for kinematically-consistent target information.