DJI Mobile SDK为开发者提供了丰富的API接口,可以供用户按自身需求开发出不同的移动应用软件。根据移动设备平台的不同,Mobile SDK又主要分为IOS SDK与Android SDK,此文主要就Android SDK进行讨论,内容来源于DJI官网。
一:SDK架构
官方给出架构图如下所示:
图 DJI Mobile SDK 架构图
由上述架构图可以看出,Mobile SDK 主要包含5部分,其主要功能概述依据大疆官网给出的如下:
SDK Manager: Manages registration of the SDK, product connection and provides access to the product itself.
Product: The aircraft or handheld product, this class holds basic product properties and contains the main product components.
Component: Component classes describe the gimbal, camera, flight controller, remote controller and wireless link. The classes provide component control, state information and contain subcomponents.
Mission: Classes that describe different missions such as Waypoint and ActiveTrack missions and hold their setup properties and status.
Mission Control: Mission Control handles execution of missions. Either single missions can be run through dedicated mission operators, or a series of missions and actions can be run serially using the Timeline.
更为具体的SDK类描述如下:
图 组件详细描述
图 任务详细描述
二:SDK 任务介绍
2.1 Waypoint Mission
官方概述如下:A waypoint mission is a series of pre-defined locations (waypoints) the aircraft will fly to. A location is a latitude, longitude and