-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Home position listener #646
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
Conversation
This works as intended with Solo ShotManager. My only concern is that the _home_location also gets set on a MISSION_ITEM message, silently overwriting this. Seems confusing. IMO the home location should be APM's home location and the waypoint_0 location should take another name. But this is up to someone who knows how this is used more than me and George. @mrpollo can you please review this and merge with any necessary changes ASAP? Thanks! |
@nick3dr @mrpollo My understanding is that the fact that the Waypoint 0 location is used as the home location is a historical bug, but unfortunately one that everyone now depends on. The actual value of both should be the same (though the home position message contains additional information about the approach vector). Using the HOME_POSITION message is a much better approach for dronekit because it doesn't require the download of (potentially large) missions in order to get the home position - and the consequently different behaviour for users when accessing this information. Of course it won't be supported in every autopilot build and we need to compensate for that. We also need to support requesting the value and setting the value, not just reading it. Therefore code will need to be added to:
|
Thanks for the review @hamishwillee. Does any of that block this PR? |
@nick3dr It shouldn't, provided the autopilot(s) don't stop populating waypoint_0 along with this change. |
No functional changes to APM were made along with this change. APM sends On Thu, Jul 14, 2016, 5:04 PM Hamish Willee [email protected]
|
@georgehines Yes. My small concerns are that:
It's probably not worth delaying this being included. |
as @hamishwillee mentions theres no need to delay merge. @peterbarker I'm going ahead and merging, but could you chime in on this thread with @hamishwillee and myself on what the proper way to handle backwards compat with APM/PX4 on issues like this is?, we might need a plan soon |
@mrpollo @peterbarker The extra work required can be discussed in #649. It should be pretty easy. |
Adds a listener to set the vehicle's home location when the autopilot broadcasts it (after it is set internally in the autopilot).