Retreive aircraft location

Completed

Comments

7 comments

  • DJI Developer Support
    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.
    0
    Comment actions Permalink
  • DJI Developer Support
    For Android, you can just call flightController.setStateCallback to register a callback for flightControllerState, it will return in 10Hz.
    0
    Comment actions Permalink
  • Amel Cherifi

    Thanks for your answer, but I still can't find the DJIFlightControllerState class in the project.

    0
    Comment actions Permalink
  • DJI Developer Support
    There are many demos using it. You can check the waypointMissionOperatorView.java file.
    0
    Comment actions Permalink
  • Amel Cherifi

    the waypointMissionOperatorView.java file does not exist either...

    0
    Comment actions Permalink
  • Amel Cherifi
    However, I just found this

    0
    Comment actions Permalink
  • DJI Developer Support
    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
    0
    Comment actions Permalink

Please sign in to leave a comment.