clockwise_360/clockwise_360.rs
1extern crate tello_edu;
2
3use tello_edu::{Tello, Result};
4
5#[tokio::main]
6async fn main() {
7 fly().await.unwrap();
8}
9
10async fn fly() -> Result<()> {
11 let drone = Tello::new()
12 .wait_for_wifi().await?;
13
14 let drone = drone.connect().await?;
15
16 drone.take_off().await?;
17 drone.turn_clockwise(360).await?;
18 drone.land().await?;
19
20 Ok(())
21}