Skip to main content

DJITelloPy

中文文档 (Chinese version of this readme)

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 djitellopy

For Linux distributions with both python2 and python3 (e.g. Debian, Ubuntu, ...) you need to run

pip3 install djitellopy

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. Comments in the examples are mostly in both english and chinese.

Notes

  • If you are using the streamon command and the response is Unknown 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 (TODO: needs confirmation with the new SDK3 port commands)

DJITelloPy in the media and in the wild

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

Metadata

Release files for djitellopy 2.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for djitellopy 2.5.0
File Size Uploaded
djitellopy-2.5.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for djitellopy 2.5.0
File Interpreter ABI Platform
djitellopy-2.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.9 kB

Release files / djitellopy-2.5.0.tar.gz

Download URL djitellopy-2.5.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fae6c9a353404a61ce362c6766efe0d23cf559fdeaf60cbc72c75e4896d780cd
BLAKE2b-256 checksum
How to use checksums
fe820717caed52cfa427c12a0cabf2ff91f9a2c9f94acf73206c5c2be9992595
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release files / djitellopy-2.5.0-py3-none-any.whl

Download URL djitellopy-2.5.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
525e9072dfb53a1f43051b6a8cbe33737def8430e8bf7b838c44a4c485c961e8
BLAKE2b-256 checksum
How to use checksums
a7068da29bca8ec949043b840e00cad95ba96d3ad31cbec20cad2d409c0c7e37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.2

Release history Release notifications | RSS feed

This release

2.5.0 This release

2 release files

2.4.0

2 release files

2.3.1

2 release files

1.5

1 release file

1.4

1 release file

1.3

1 release file

1.2

1 release file

1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page