Retreive aircraft location
CompletedI cloned the dji-msdk project on android studio, and I would like to be able to retrieve the position of the drone when the application is launched and observe it throughout the execution of the app. I can't seem to find the function that retrieves the position so I can call it. In the doc it is mentioned that it is necessary to use the methods of the DJIFlightController class (getAircraftLocation()) but I do not have access to it in the project and yet I cloned the whole project
-
Are you using the iOS MSDK? You can run our sample. To get the aircraft location, you can use DJIFlightController.delegate and find the flightController:didUpdateState. Inside the DJIFlightControllerState, you can get the aircraftLocation. The same principle applies to the Android MSDK. -
I thought you are using MSDK v4, from the screenshot I have figured out you are using v5. Please read this article, to know how to get the aircraft location, https://sdk-forum.dji.net/hc/en-us/articles/9849286039193-Chapter-15-Flight-controller
Please sign in to leave a comment.
Comments
7 comments