Skip to content

dbaldwin/DroneBlocks-DJITelloPy-Tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DroneBlocks DJITelloPy API Tutorial

This course will take a deep dive into the DJITelloPy Python API and how a python program communicates to the Tello drone. We will look at a number of the methods available to control the Tello drone from any Python script. In addition you can use the commands you learn in this course, in the other courses on Advanced Tello Programming with Python. By the end of this course you will know how to install the necessary libraries, and create Python scripts to interact with the Tello drone. With these building blocks, you create your own scripts to customize the flying pattern of the Tello drone. The repository contains the scripts for the DroneBlocks Tutorial that covers the DJITelloPy Python API.

Setup

Step 1 - Download the source code zip file

Download the zip for for this course. If you are familiar with 'Git', you can also clone this repository

Unzip the download and move the folder where you would like to keep the project source code.

Step 2 - Create a python virtual environment

Open a terminal window and change directory to where you saved the folder from above.

Check your python version by typing both commands below to determine which python installation is Python 3.6 or higher.

python --version
python3 --version

Choose either 'python' or 'python3' - whichever returned a python version greater than 3.6.

Inside the project folder, type the following:

python3 -m venv venv

Activate Virtual Environment

VERY IMPORTANT

Activate the newly created python virtual environment so all of the libraries are install into the project and not the global Python installation.

This will help keep this projects libraries out of other projects.

  • MacOS
source venv/bin/activate
  • Windows
.\venv\Scripts\activate

Install Libraries

In the same terminal window type:

pip install -r requirements.txt

This will install all of the necessary libraries for this project.

Test the Installation

python 00_test_installation.py

In the terminal you should see the message:

Your installation worked!

DJI Tello SDK Documentation

Below are links to the official DJI Tello SDK documentation. These documents will provide the detail of all of the commands that the Tello can accept.

Version 2.0

V2.0 Tello SDK

Version 3.0

V3.0 Tello SDK

Resources

Great article on the difference between Pitch, Roll, Yaw.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages