Crates.io | tello-rust |
lib.rs | tello-rust |
version | 1.0.1 |
source | src |
created_at | 2024-09-14 20:44:49.975805 |
updated_at | 2024-09-14 21:03:29.213458 |
description | This 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. |
homepage | https://github.com/rthom6/tello-rust |
repository | https://github.com/rthom6/tello-rust |
max_upload_size | |
id | 1375033 |
size | 31,941 |
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 1.3
Tello SDK 2.0 (including EDU-only commands)
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
Here is a basic example of how to use the library to control the Tello drone:
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");
}
Takeoff: takeoff()
Land: land()
Move: move(x, y, z, speed)
Flip: flip(direction)
And more...
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.
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.