DJI Payload SDK  1.5.3
DJI Payload SDK Documentation

This section provides API Reference for the DJI Payload SDK (PSDK).

Introduction

PSDK (Payload SDK) basically allows users to develop their own payload that can use the power and communications resources of DJI drone system (drone, remote controller and mobile app). As illustrated in the following diagram, PSDK (Payload SDK) program includes three layers:

psdk_architecture.jpg

PSDK Arch Layer: It is the PSDK platform wrapper layer, which is used to port payload SDK to different platforms.

PSDK Core Layer: It is the PSDK low layer to deal with PSDK protocol parse, protocol packages and debugging, that is, PSDK Core.

PSDK Upper Layer: It is the PSDK function layer, including PSDK Upper, PSDK App Function, PSDK Message Push, PSDK Camera, PSDK Gimbal, PSDK Osdk Function and PSDK Positioning modules. User can call these layer interface functions to use PSDK functionality.

User Application Layer: It is user's application which uses PSDK API for meeting the needs of the user's application.

Features

Developers can gain an end-to-end understanding of each feature, from the high-level ideas all the way to the API documentation, using this table:

Modules Related API Groups Description
PSDK Upper PSDK_Upper Class with APIs & data structures for PSDK protocol structure initializing, user's application information setting, low-level communication between payload and Skyport adapter, synchronous of payload state and link checking between payload and Skyport adapter.
PSDK App Function PSDK_App_Function Class with APIs & data structures for data transmission between payload and mobile application, widgets set & get.
PSDK Message Push PSDK_Message_Push Class with APIs & data structures for receiving data pushed by Skyport adapter, for instance, image transmission bandwidth data, UAV attitude, etc.
PSDK Camera PSDK_Camera Class with APIs & data structures for payload camera operation.
PSDK Gimbal PSDK_Gimbal Class with APIs & data structures for payload gimbal operation.
PSDK Osdk Function PSDK_Osdk_Function Class with APIs & data structures for data transmission between payload and OSDK application.
PSDK Positioning PSDK_Positioning Class with APIs & data structures for positioning.
PSDK Core PSDK Core Class with data structures for PSDK protocol parsing, protocol packing and debugging.
PSDK Platform Wrapper PSDK Platform Wrapper Class with APIs & data structures for achieving memory management and mutex operation.

Q & A

How is Payload SDK ported to your own platform?

Referring to PSDK Platform Wrapper, add your platform arch code. We already provide mcu-bare-metal, Linux and some RTOS arch code.