The user manual for each product should be reviewed to understand the full product setup (visit http://www.dji.com and navigate to the downloads page for each product). This section details some of the key points to remember.
Generally, all batteries of a product should be charged before running an application for best experience. This can include aircraft batteries, remote controller batteries, handheld gimbal batteries, and aircraft mounted gimbal batteries (for the Ronin MX). When a battery is too low, an aircraft may return home or land early in the application, or might not take off at all.
If SDK applications need to redirect to DJI Go Apps to do actions like activate DJI Products, you can use the following code to implement it:
Redirect to DJI Go 4 App : Use URL scheme
Redirect to DJI Go App : Use URL scheme
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("dji.go.v4");
Intent launchIntent = getPackageManager().getLaunchIntentForPackage("dji.pilot");
Aircraft, remote controller and/or handheld controller firmware should be updated to the most recent release before beginning application testing and debugging. Different products sometimes have different processes for checking firmware version and upgrading firmware. Each product's page at http://www.dji.com has instructions in the Downloads section for upgrading firmware.
For aircraft, the remote controller FAP or ASP flight mode switch needs to be in a specific position to accept SDK commands that change flight orientation and automate flight. Remote controllers and aircraft can sometimes be interchanged making the FAP/ASP switch configuration have several options.
|P3, Inspire (all models)||P3, Inspire (all models)||F|
|P3, Inspire (all models)||P4||A|
|P4||P3, Inspire (all models)||P|
Any SDK application will need internet connectivity the first time it runs to register with DJI and get authorization to use the SDK. After the first successful registration, the authorization will be stored locally, and internet connectivity will not be required for registration.
There are several connection configurations between mobile device and product:
There are several ways to initialize all products and run an application. An example for USB and WiFi connection scenarios is given below.
Mavic Pro, Phantom 4, Phantom 4 Professional, Phantom 3 Professional, Phantom 3 Advanced, Inspire series, Matrice Series:
If using an Android device, the DJI Remote Controller needs to support AOA . All recent versions of the firmware support AOA. AOA is supported if when the Sample Application connects with the Android device, a dialog similar to that below appears:
Phantom 3 Standard, Phantom 3 4K, Spark:
Osmo, Mavic Pro, Spark: