2018-11-18 13:41:49 -07:00
2018-11-18 13:34:47 -07:00
2018-11-15 16:41:01 -07:00
2018-11-18 13:34:47 -07:00
2018-11-18 13:41:49 -07:00
2018-11-18 13:16:14 -07:00
2018-11-18 13:41:49 -07:00
2018-11-18 13:41:49 -07:00

TelloSDKPy

DJI Tello drone python interface using the official Tello SDK. Yes, this library has been tested with the drone. Please see example.py for a working example controlling the drone as a remote controller with the keyboard and the video stream in a window.

Compatible with python 2.7 and 3.6.

Prerequisites

$ git clone https://github.com/damiafuentes/TelloSDKPy.git
$ cd TelloSDKPy
$ pip install requirements.txt

Usage

Simple example

from TelloSDKPy.tello import Tello
import cv2
import time


tello = Tello()

tello.connect()

tello.takeoff()
time.sleep(5)

tello.move_left(100)
time.sleep(5)

tello.rotate_counter_clockwise(45)
time.sleep(5)

tello.land()
time.sleep(5)
        
tello.end()

Example using pygame and the video stream

Please see example.py.

The controls are:

  • T: Takeoff
  • L: Land
  • Arrow keys: Forward, backward, left and right.
  • A and D: Counter clockwise and clockwise rotations
  • W and S: Up and down.

Note

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.

Author

  • Damià Fuentes Escoté

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Description
DJI Tello drone python interface using the official Tello SDK. Feel free to contribute!
Readme 1.4 MiB
Languages
Python 100%