Indoor/No GPS height limited to 5m when using DJI SDK Air 2s
CompletedHello,
I've been using DJI Mobile SDK for iOS for an indoor project. When using the Mobile SDK app alone, the drone's height is limited to 5m. If open DJI Fly app and use the drone it goes higher than 5m.
Once the drone is used with DJI Fly app and then I switch back to DJI SDK mobile app, the drone is able to fly higher than 5m, until the drone is restarted.
Is there a specific setting that DJI Fly app applies to unlock more than 5m height? How to replicate it using SDK for iOS?
-
- 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.
-
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.
Please sign in to leave a comment.
Comments
3 comments