Please select Into the mobile phone version | Continue to access the computer ver.
Get current location of drone method
95 2 7-29 02:33
Uploading and Loding Picture ...(0/1)
o(^-^)o
djiuser_4DNOt86v1Jtb
lvl.1

India
Offline

Hello there,

We are developing one demo for connecting drone with SDK and get live location of it and show it in google map in Android and IOS.

We got method for connecting drone, not once drone got connected and its flies then we need to get current location (lat, long) from drone continously.

We have used DJIGEO sdk for integrating., now can you please suggest me any method or listner which will give us current lat long.

And we got one method initFlightController(), but question is that how we will get lat long continuosly when drone will change its location.

Any sample code also will be work for us, basically we will need callback function something like that.

We will need it in Android and IOS.

We need support on urgent base.

Thanks in advance.


7-29 02:33
Use props
kv886
lvl.4

South Africa
Offline

FlightController.setStateCallback((@Nullable FlightControllerState.Callback callback))
Then you can call FlightControllerState.getAircraftLocation in FlightControllerState.Callback
7-30 00:19
Use props
djiuser_4DNOt86v1Jtb
lvl.1

India
Offline

Thanks for your support it will work with android.

Can we have same solutions for iOS as well. As we would like to track DJI drone using iOS app and we have implemented DJI Model as per below reference
https://www.youtube.com/watch?v=qD5qe6nxMRI
7-30 01:42
Use props
Advanced
You need to log in before you can reply Login | Register now

Credit Rules