MAVSDK icon indicating copy to clipboard operation
MAVSDK copied to clipboard

set a GPS location to a drone that doesn't use GPS

Open bone3011 opened this issue 5 years ago • 4 comments
trafficstars

I am kinda newb in MAVSDK and PX4 and every help will be appreciated. I'd like to set a GPS location to a drone that doesn't use GPS. mavlink has a command number 48 (SET_GPS_GLOBAL_ORIGIN). How can I use it (if this is the right command), to send a position to the drone? thanks

bone3011 avatar Jan 05 '20 09:01 bone3011

SET_GPS_GLOBAL_ORIGIN is not (yet) supported by MAVSDK, so that would need to be contributed. I personally don't know how it works exactly. I would say we first need to understand how it is supposed to be used, and then it could be contributed to MAVSDK :slightly_smiling_face:.

JonasVautherin avatar Jan 06 '20 12:01 JonasVautherin

I don't think what you're describing is supported by PX4? Or is it?

If you want to use an external source as position input for PX4 you could check the mocap plugin. I think it is only for local (in meter) coordinates and not global ones though.

julianoes avatar Jan 17 '20 10:01 julianoes

Hi everyone, these two PR's are related to this issue so I thought I'd post them here. Once/if these are merged upstream I'll help out with work on the MAVSDK side where I can: https://github.com/PX4/PX4-ECL/pull/962 https://github.com/PX4/PX4-Autopilot/pull/16544

mcsauder avatar Jan 18 '21 19:01 mcsauder

thanks Mark*!*

On Mon, 18 Jan 2021 at 21:04, Mark Sauder [email protected] wrote:

Hi everyone, these two PR's are related to this issue so I thought I'd post them here. Once/if these are merged upstream I'll help out with work on the MAVSDK side where I can: PX4/PX4-ECL#962 https://github.com/PX4/PX4-ECL/pull/962 PX4/PX4-Autopilot#16544 https://github.com/PX4/PX4-Autopilot/pull/16544

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mavlink/MAVSDK/issues/952#issuecomment-762424526, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADTN5SRMLJQMHERUK5S3BDLS2SA5LANCNFSM4KC2KIAQ .

bone3011 avatar Jan 18 '21 19:01 bone3011