Python Tello Basic Movements

Subscribers:
5,010
Published on ● Video Link: https://www.youtube.com/watch?v=XZ-BqUVT0Ok



Duration: 0:46
306 views
4


Install the following libraries / modules in PyCharm (Python IDE).

djitellopy
opencv-python

Sample Python codes to control Tello EDU drone. Make sure there is enough time delay (say several seconds such as 8) between successive movement commands such as takeoff, move, flip etc.

from djitellopy import Tello
import time

myDrone = Tello()
myDrone.connect()
myDrone.get_battery()
myDrone.takeoff()
time.sleep(8)
myDrone.move_forward(100)
time.sleep(8)
myDrone.move_back(200)
time.sleep(8)
myDrone.move_forward(100)
time.sleep(8)
myDrone.land()