mavlink / MAVSDK-Python

MAVSDK client for Python.
https://mavsdk.mavlink.io
BSD 3-Clause "New" or "Revised" License
323 stars 220 forks source link

Input external gps through mavsdk #320

Open matthewk-rydalch opened 3 years ago

matthewk-rydalch commented 3 years ago

Is there any way to update the position estimate with gps data coming from an onboard computer? What I could use is something similar to set_vision_position_estimate(), but will lla instead of pose data. I conduct research where I need to work with the gps data on an onboard computer, so my gps module is connected to my computer. I would rather update the position from my computer than have to hook up the module to my pixhawk.

JonasVautherin commented 3 years ago

I would say that this is a PX4 question. Once it is possible and there exists a MAVLink message for it, we can add it to MAVSDK :+1:

julianoes commented 3 years ago

From a mavlink point of view we could use GPS_INPUT but we would have to add support to PX4 first.

matthewk-rydalch commented 3 years ago

I see. Right now I am transforming my gps data into local ned coordinates and passing those updates to px4 through the mocap plugin. That is working, but it is maybe a little hacky. If it were possible to add gps input functionality that would be great, but probably not critical.

julianoes commented 3 years ago

@matthewk-rydalch right, I guess that works.