Asyncio-based control library for the Tello drone
Project description
tello-asyncio
A library for controlling and interacting with the Tello EDU drone using modern asynchronous Python. All operations are implemented as awaitable coroutines, completed when the drone sends acknowledgment of the command message.
import asyncio
from tello_asyncio import Tello
async def main():
drone = Tello()
try:
await drone.connect()
await drone.takeoff()
await drone.turn_clockwise(360)
await drone.land()
finally:
await drone.disconnect()
asyncio.run(main())
See the examples directory for more usage example scripts.
Requires Python 3.7+, developed and tested with Python 3.9.4
Version History
1.0.0 Basic drone control
- UDP connection for sending commands and receiving responses (default AP mode only - you must join the drone's own WiFi network)
- take off and land
- rotate clockwise and counter-clockwise
- move up, down, left, right, forward and back
1.1.0 Drone state
- listens for and parses UDP state messages (not yet including the mission pad related values)
- access via the read only
state
object attribute, or via shortcuts likeheight
,temperature
etc - constructor takes an optional
on_state
callback argument for notification of new state - or use the asynchronous generator
state_stream
for an infinite stream of updates
Roadmap
Coming soon...
- More advanced control
- Video capture
- Error handling
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tello_asyncio-1.1.0.tar.gz
(13.5 kB
view hashes)
Built Distribution
Close
Hashes for tello_asyncio-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 341ea8140eac671b259487fe53676accc8040f7a9813bc77c7b028ac5b1cca53 |
|
MD5 | 7c66aaf3ed886be43a2188933c5a91be |
|
BLAKE2b-256 | 57a383669b2cac21ec37b4d1a302cd8df41144ce38cd8702f69cfd7b499e1939 |