tello-rust

Crates.iotello-rust
lib.rstello-rust
version1.0.1
sourcesrc
created_at2024-09-14 20:44:49.975805
updated_at2024-09-14 21:03:29.213458
descriptionThis project is designed to allow users to control a Ryze Tello drone using Rust. It provides a Rust-based interface to abstract away from the Tello SDK allowing for quick setup and works over a UDP port.
homepagehttps://github.com/rthom6/tello-rust
repositoryhttps://github.com/rthom6/tello-rust
max_upload_size
id1375033
size31,941
Ryan (RThom6)

documentation

README

Ryze Tello Drone Rust Wrapper

A Rust wrapper for interacting with the Ryze Tello drone, using the official Tello API. This library is inspired by the DJITelloPy Python library, offering similar functionality but in the Rust programming language.

Features

Control the Ryze Tello drone using Rust.
Send commands to the drone, like takeoff, land, flip, and more.
Receive state information from the drone in real time.
Basic support for the Tello SDK 1.3 commands (no support for EDU-only commands as of now).

Note: This wrapper currently only supports controlling one drone at a time.

Tello SDK Documentation

Tello SDK 1.3
Tello SDK 2.0 (including EDU-only commands)

Installation

You can add this crate to your project by running the command:

cargo add tell-rust

Or by adding

tello-rust = "1.0.0"

to your cargo.toml file

Usage

Here is a basic example of how to use the library to control the Tello drone:

rust

use ryze_tello::Tello;

fn main() {
    let mut drone = Tello::new();

    drone.takeoff().expect("Failed to takeoff");
    drone.flip("l").expect("Failed to flip left");
    drone.land().expect("Failed to land");
}

Supported Commands

Takeoff: takeoff()
Land: land()
Move: move(x, y, z, speed)
Flip: flip(direction)
And more...

Limitations

This wrapper does not support the EDU-only commands from SDK 2.0 yet, but this might be added in future updates.
Only one drone can be controlled at a time.

Contributing

Contributions are welcome! If you find a bug or have a feature request, please open an issue or submit a pull request on GitHub. License

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

Commit count: 0

cargo fmt