Code Monkey home page Code Monkey logo

dji-sdk-python's Introduction

DJISDKPY

DJI SDK python interface

DJISDKPY is a python module interface to DJI's Onboard and Guidance SDKs on linux platforms. It is built with pybind11 and uses the DJI SDK apis to provide full control of supported DJI vehicles Matrices 100, Matrice 600, Matrice 210/210-RTK or flight controllers A3 or N3.

Dependencies

This module has the following depenendencies:

  • python
  • python-dev
  • pip
  • setuptools
  • build-essential
  • cmake

Compilation and Usage

Install dependencies

sudo apt-get update
sudo apt-get install python python-dev python-pip build-essential cmake
pip install setuptools

Compilation

git clone https://github.com/drmaj/dji-sdk-python
cd dji-sdk-python
git submodule update --init --recursive
python setup.py build_ext -i

Usage

After compilation, djisdkpy.so module will be available in the root directory of the repo. Use the module as follows:

import djisdkpy
import time

drone = djisdkpy.Drone('UserConfig.txt')
drone.initialize()
time.sleep(1)
drone.takeControl()
drone.arm()
drone.takeoff()
time.sleep(5)
drone.land()
drone.disarm()
drone.releaseControl()
drone.shutdown()

TODO

  • Add support for Guidance SDK
  • Update to support v3.3 of the Onboard SDK
  • Add support for RPi3 raspbian
  • Add move by position and move by velocity full support

About

This package was created by Miguel Alonso Jr with the purpose of providing a simply python interface to DJI's drones and guidance platforms. It runs on debian linux platforms like the L4T Jetson TX1/TX2.

License

DJISDKPY is provided under the GNU GPL V3 that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

dji-sdk-python's People

Contributors

miguelalonsojr avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.