DJI Tello drone interface using the official Tello SDK including support for state packets and video streaming
Project description
DJITelloPy
DJI Tello drone python interface using the official Tello SDK and Tello EDU SDK. This library has the following features:
- implementation of all tello commands
- easily retrieve a video stream
- receive and parse state packets
- control a swarm of drones
- support for python >= 3.6
Feel free to contribute!
Install using pip
$ pip install https://github.com/damiafuentes/DJITelloPy/archive/master.zip
For Linux distributions with both python2 and python3 (e.g. Debian, Ubuntu, ...) you need to run
$ pip3 install https://github.com/damiafuentes/DJITelloPy/archive/master.zip
Install in developer mode
Using the commands below you can install the repository in an editable way. This allows you to modify the library and use the modified version as if you had installed it regularly.
$ git clone https://github.com/damiafuentes/DJITelloPy.git
$ cd DJITelloPy
$ pip install -e .
Usage
API Reference
See djitellopy.readthedocs.io for a full reference of all classes and methods available.
Simple example
from djitellopy import Tello
tello = Tello()
tello.connect()
tello.takeoff()
tello.move_left(100)
tello.rotate_counter_clockwise(90)
tello.move_forward(100)
tello.land()
More examples
In the examples directory there are some code examples:
- taking a picture
- recording a video
- flying a swarm (multiple Tellos at once)
- simple controlling using your keyboard
- mission pad detection
- fully featured manual control using pygame
Notes
- If you are using the
streamon
command and the response isUnknown command
means you have to update the Tello firmware. That can be done through the Tello app. - Mission pad detection and navigation is only supported by the Tello EDU.
- Bright environment is necessary for successful use of mission pads.
- Connecting to an existing wifi network is only supported by the Tello EDU.
- When connected to an existing wifi network video streaming is not available.
Authors
- Damià Fuentes Escoté
- Jakob Löw
- and more
License
This project is licensed under the MIT License - see the LICENSE.txt file for details
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for djitellopy2-2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f44beb114f3214fc86a20447e62399f31a417fbb7a62d21884473879216c321 |
|
MD5 | a161e3bc8f42f495775f47c1b89c38fb |
|
BLAKE2b-256 | 3cdf3e7fa2927ece289f369dd09d75fce4853e5362732d11290fc858b6ff584c |