DJITelloPy | DJI Tello drone python interface using the official Tello | SDK library
kandi X-RAY | DJITelloPy Summary
kandi X-RAY | DJITelloPy Summary
DJI Tello drone python interface using the official Tello SDK and Tello EDU SDK. This library has the following features:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Start the game
- Handle keydown events
- Keyup event handler
- Send RC control
- Stops the thread
- Start the worker
- Decorator to enforce types
- Return True if the type hint is an unparameterized type hint
- Pan window in half clockwise
- Pan the half of a half counter clockwise
- Panorama full clockwise
- Panorama full counter clockwise
DJITelloPy Key Features
DJITelloPy Examples and Code Snippets
import cv2
import threading
from djitellopy import tello
from tkinter import *
from PIL import Image, ImageTk # You have to import this last or else Image.open throws an error
import time
def dummy_tello_fn():
for i in range(3):
Community Discussions
Trending Discussions on DJITelloPy
QUESTION
I'm currently working on a Tkinter GUI for my DJI Tello, and I'm trying to make it so that when I command the drone to takeoff/land, the streamed video on the GUI does not freeze. I'm not too familiar with multithreading, but I looked the issue up and it seems like I'm not the only one encountering this. So I used what I found regarding threading and starting threads, and ended up with this line (more or less):
...ANSWER
Answered 2022-Jan-03 at 19:42Ok so I actually managed to figure out the solution this morning based on this article:
https://bhaveshsingh0124.medium.com/multi-threading-on-python-tkinter-button-f0d9f759ad3e
Essentially, what I had to do was thread the Tello commands WITHIN the function that I'm calling with the button, rather than that function itself. Since the drone can only land OR take off, it can create a new thread each time one of those two commands is called. Here is the fixed code:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DJITelloPy
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.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page