Indoor/No GPS height limited to 5m when using DJI SDK Air 2s

Completed

Comments

3 comments

  • DJI Developer Support
    First of all, are you using the iOS 4.16.1? Then you can set the height limit with setMaxFlightHeight:withCompletion. There is no any restrictions abot 5m, at least 30m. Have you disable the setNoviceModeEnabled:withCompletion?
    0
    Comment actions Permalink
  • Tejaswi

    - Yes, I'm using iOS SDK 4.16.1

    - setMaxFlightHeight was already set to 500m. Verified using getMaxFlightHeight. When there is gps reception, 5m height limitation does not come into play.

    - setNoviceModeEnabled was set to false explicitly.

     

    When I open DJI Fly app after opening DJI SDK app, I'm shown a flight restriction in red about limited height. The error message mentions "Initializing GPS. Flight altitude restricted. Move to an open area or connect to DJI Fly to enable positioning (Code: 30279)"

    The above error is shown for 3 seconds and then the height limitation of 5m is removed (when there is no GPS). So looks like DJI Fly applying a specific parameter that is enabling positioning indoors.

    0
    Comment actions Permalink
  • Tejaswi

    This issue has been resolved.

    The app using DJI SDK did not request location authorization, and I guess SDK does not explicitly request it, but rather fails silently if location of the device cannot be fetched. Once location authorization was requested and approved by the user for the app, DJI SDK behaved similar to DJI Fly app with respect to indoor positioning.

     

    0
    Comment actions Permalink

Please sign in to leave a comment.