Follow the prompt on screen to choose an action for the drone to do.
STM32 Onboard Computer
The system has the following setup:
The user can view the output of the program through the USART2 port of the STM32. The app communicates with the DJI product connected to the USART3 port through the Onboard SDK and prints feedback/debug information to the user thorugh USART2.
Download Keil MDK >5.22 and license it.
Use Keil's Pack Installer to install the latest STM32F4xx_DFP.2.x.x pack, as shown below. (Alternatively, you can download manually from http://www.keil.com/dd2/Pack/ and import the downloaded file from Pack Installer.)
Installing and Setting up the OSDK
Clone (or download as zip) the DJI OSDK from Github here.
Open the project located in sample/STM32/OnBoardSDK_STM32/Project/OnBoardSDK_STM32.uvprojx in Keil uVision IDE.
To build the code, developers need to input the correct APP KEY and APP ID obtained from DJI Developer site in OnboardSDK_STM32/User/Activate.cpp file.
Building and Running the Samples
To choose which sample to run, you need to pass a preprocessor flag using Keil. See the image to find the location (underlined in red) you need to edit:
Use the menu item Project->Build Target and Flash->Download to build the project and flash to the STM32 board.
Set the baud rate of your serial terminal software (here we use the open-source RealTerm ) to be 115200, which is the one we use to configure USART2 in the example App. Configure the serial terminal to display the received information in Ascii mode.
Understanding the Samples
The individual sample pages describe in detail the workings of the sample apps. Here are the available samples: