Getting the GPS location of Mavic mini DJI mobile sdk
2031 0 2022-4-12
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_mivL4aJKikQQ
lvl.1
Flight distance : 25194 ft
United Kingdom
Offline

Hi, I am currently working on an app using the DJI Mobile SDK in android. I am trying to get the live drone GPS location of the Mavic mini. The code I am using is mFlightController.setStateCallback(djiFlightControllerCurrentState -> {
         droneLocation.setLatitude(djiFlightControllerCurrentState.getAircraftLocation().get latitude())

This never seems to get hit and I'm not sure why given the documentation.

Any ideas as to why this isn't working is much appreciated. Thank you.
2022-4-12
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules