/dji-asdk-to-python

Control your DJI drone compatible with DJI Android SDK through Python

Primary LanguagePythonOtherNOASSERTION

DJI Android SDK to Python

Documentation Status Updates

Control your DJI drone compatible with DJI Android SDK through Python

Features

  • Control your aircraft with virtual sticks
  • Perform waypoint missions
  • Get real time aircraft video streaming using OpenCV and GStreamer
  • Precision landing using Aruco markers

Dependencies

Gstreamer

$ sudo apt-get update
$ sudo apt install -y libgirepository1.0-dev gcc libcairo2-dev pkg-config python3-dev python3.8-dev gir1.2-gtk-3.0
$ sudo apt-get install -y libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

Install

Install PyPI

$ pip install dji-asdk-to-python

Install from master

$ pip install git+https://github.com/PSBPOSAS/dji-asdk-to-python.git

Install specific release example

$ pip install git+https://github.com/PSBPOSAS/dji-asdk-to-python.git@v0.1.0

Uninstall

$ pip uninstall dji-asdk-to-python

Usage example

Check examples here https://github.com/PSBPOSAS/dji-asdk-to-python/tree/master/examples

import time
from dji_asdk_to_python.products.aircraft import Aircraft
drone = Aircraft("android_device_ip")
fc = drone.getFlightController()
fc.startTakeoff()
time.sleep(10)
fc.startLanding()

Generate Documentation

This wil generate a HTML version of your docs/ and open it in a browser.

$ make docs

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.