• Stars
    star
    134
  • Rank 270,967 (Top 6 %)
  • Language
    C++
  • Created over 9 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The official Guidance SDK package for Windows, Ubuntu and XU3.

DJI Guidance SDK

 English Version  中文版本

English Version

Official Guidance SDK package for accessing the rich categories of output data from Guidance via USB and UART, and configure your Guidance all by your demand.

Document

Structure

  • demo: demo applications using Guidance SDK
  • doc: documentations
  • examples: examples for USB and UART
  • include: Header file of Guidance SDK
  • lib: Library files for Windows
    • 2010/x64: build with Visual Studio 2010 64 bit
    • 2010/x86: build with Visual Studio 2010 32 bit
    • 2013/x64: build with Visual Studio 2013 64 bit
    • 2013/x86: build with Visual Studio 2013 32 bit
  • so: Library files for Linux
    • x64: build with g++ on 64 bit Linux system
    • x86: build with g++ on 32 bit Linux system
    • XU3: build with g++ on XU3 (could also be used for DJI's Manifold and TK1)
    • TX1: build with g++ on TX1 (64bit system)
    • arm: build with latest arm-linux-gnueabi-g++ for embedded ARM systems.Please install the cross-compiling toolchain by sudo apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi

Also notice that, to enable fast download for ROS users, we have a separate ROS repo with much smaller size: Guidance-SDK-ROS.

Usage

Windows

Examples of USB and UART can be found in examples/usb_example, examples/uart_example, including Visual Studio projects which is ready to compile. Remember to copy the corresponding DJI_guidance.dll file to the same directory where the output binary locates.

Linux

Examples of USB and UART can be found in examples/usb_example, examples/uart_example, including Makefile which is ready to compile. Remember to copy the corresponding libDJI_guidance.so file to the same directory where the output binary locates.

Notice that, reading and writing Guidance USB port in Linux requires root authority. To save the trouble of typing sudo every time running Guidance SDK applications, it is suggested to add a rule to /etc/udev/rules.d directory, which can be found in doc/51-guidance.rules. Or typing from terminal the following line

sudo sh -c 'echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"fff0\", ATTR{idProduct}==\"d009\", MODE=\"0666\"" > /etc/udev/rules.d/51-guidance.rules'

Learn More about DJI Products and the Guidance SDK

Please visit DJI Guidance SDK Documentation for more details.

中文版本

Guidance SDK可以让开发者通过Guidance的USB口和串口来获取丰富的传感器数据,以及按照自己的需要来灵活配置Guidance。

文档

结构

  • demo: 用Guidance SDK实现的示例应用
  • doc: 文档
  • examples: USB和串口的简单示例程序
  • include: Guidance SDK头文件
  • lib: Windows下的库文件
    • 2010/x64: 使用 Visual Studio 2010 64 bit 编译
    • 2010/x86: 使用 Visual Studio 2010 32 bit 编译
    • 2013/x64: 使用 Visual Studio 2013 64 bit 编译
    • 2013/x86: 使用 Visual Studio 2013 32 bit 编译
  • so: Linux下的库文件
    • x64: 在64位Linux系统上用 g++ 编译
    • x86: 在32位Linux系统上用 g++ 编译
    • XU3: 在XU3上用 g++ 编译 (也适用于DJI Manifold及TX1)
    • XU3: 在TX1上用 g++ 编译 (64bit系统)
    • arm: 使用最新的 arm-linux-gnueabi-g++ 编译,供嵌入式ARM系统使用。使用时,请先安装交叉编译工具链:sudo apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi

请注意,为了便于ROS用户的快速下载,我们还维护了一个独立的ROS包。它不包含任何文档和Windows下的库文件,因此具有更小的体积:Guidance-SDK-ROS.

如何使用

Windows

USB和串口的示例代码可以在 examples/usb_exampleexamples/uart_example中找到,其中包含了可直接编译运行的Visual Studio工程。需要将对应的dll文件复制到exe所在目录或Windows系统目录。

Linux

USB和串口的示例代码可以在同样的目录(examples/usb_exampleexamples/uart_example)中找到,其中包含了可直接编译的Makefile文件。

注意,在Linux下读写Guidance的USB口需要root权限。为了省去每次运行Guidance SDK程序都要输入sudo的麻烦,建议在 /etc/udev/rules.d 下添加一个规则文件,即 doc/51-guidance.rules. 或者也可以从终端输入下面的这行:

sudo sh -c 'echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"fff0\", ATTR{idProduct}==\"d009\", MODE=\"0666\"" > /etc/udev/rules.d/51-guidance.rules'

了解更多

请访问DJI Guidance SDK Documentation以了解更多。

More Repositories

1

Tello-Python

This is a collection of python modules that interact with the Ryze Tello drone.
Python
1,346
star
2

Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Java
976
star
3

Onboard-SDK

DJI Onboard SDK Official Repository
C++
904
star
4

Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Objective-C
576
star
5

Onboard-SDK-ROS

Official ROS packages for DJI onboard SDK.
C++
443
star
6

RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
C
322
star
7

Mobile-SDK-Android-V5

MSDK V5 Sample
Java
254
star
8

Payload-SDK

DJI Payload SDK Official Repository
C
223
star
9

Windows-SDK

DJI Windows SDK: http://developer.dji.com/windows-sdk/
C
166
star
10

Mobile-UXSDK-Android

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of Android applications using the DJI Mobile SDK.
151
star
11

DJI-Cloud-API-Demo

Java
120
star
12

Mobile-UXSDK-Beta-Android

Mobile Android UXSDK Beta
Java
97
star
13

Cloud-API-Demo-Web

Vue
93
star
14

Android-Bridge-App

Source code of DJI Android Bridge App.
Java
93
star
15

Guidance-SDK-ROS

The official ROS package of Guidance SDK for 32/64 bit Ubuntu and XU3
C++
80
star
16

Mobile-UXSDK-iOS

DJI Mobile UXSDK is a suite of product agnostic UI objects that fast tracks the development of iOS applications using the DJI Mobile SDK.
Objective-C
73
star
17

Mobile-SDK-Tutorial

GitBook Link
CSS
61
star
18

Mobile-SDK-Doc

Source code and docs for the documentation page of DJI Mobile SDK Developer Website.
HTML
52
star
19

FlightRecordParsingLib

DJI Flight Record Parsing Lib
C++
45
star
20

DJI-IoTEdge

This project is a sample for you to learn how to combine Microsoft Azure IoT Edge DJI Windows SDK and DJI Drones.
C#
45
star
21

iOS-Bridge-App

The source code of DJI Bridge App project
Objective-C
38
star
22

DJIWidget

The DJIWidget is a delightful DJI library includes VideoPreviewer for video decoding.
C
35
star
23

Manifold-Cam

The project realizes to get the video data from X3 camera on M100.
C
34
star
24

Onboard-SDK-Doc

Source code and docs for the documentation page of DJI Onboard SDK Developer Website.
HTML
34
star
25

Mobile-UXSDK-Beta-iOS

Mobile iOS UXSDK Beta
Objective-C
23
star
26

Cloud-API-Doc

20
star
27

Edge-SDK

DJI Edge SDK Official Repository
C++
19
star
28

Windows-SDK-Doc

Source code and docs for the documentation page of DJI Windows SDK Developer Website.
HTML
18
star
29

Mobile-OSDK-iOS-App

Mobile - OnboardSDK communication iOS app
Objective-C
15
star
30

Payload-SDK-Doc

Source code and docs for the documentation page of DJI Payload SDK Developer Website.
HTML
14
star
31

DJIPSDKVideoStreamCheckTool

PSDK video stream check tool, used to check whether the specified video stream conforms to the PSDK video stream standard
C
13
star
32

Guidance-SDK-Doc

Source code and docs for the documentation page of DJI Guidance SDK Developer Website.
CSS
9
star
33

Mobile-SDK-Tutorial-V5

Mobile SDK Tutorial V5 Public
6
star
34

Onboard-SDK-Resources

6
star
35

Onboard-SDK-ROS-Release

4
star
36

DJIFlySafeDatabaseResource

DJIFlySafeDatabaseResource bundle.
Ruby
2
star
37

DJINetworkRTKHelper

The DJINetworkRTKHelper is used for Network RTK service in DJI Mobile SDK.
Ruby
2
star
38

OnboardSDK-Ping-iOSApp

Companion iOS App for Ping ADS-B integration to DJI onboard SDK.
Objective-C
1
star
39

Payload-SDK-Tutorial

Payload SDK Tutorial
1
star