diff --git a/anafi-rs/examples/liftoff.rs b/anafi-rs/examples/liftoff.rs index 8e1dfdd..60e0993 100644 --- a/anafi-rs/examples/liftoff.rs +++ b/anafi-rs/examples/liftoff.rs @@ -20,15 +20,15 @@ fn main() -> Result<(), Box> { drone.up()?; std::thread::sleep(Duration::from_secs(2)); - // log::warn!("forward!"); - // drone.forward()?; - // std::thread::sleep(Duration::from_secs(1)); - // drone.stop()?; + log::warn!("forward!"); + drone.forward()?; + std::thread::sleep(Duration::from_secs(1)); + drone.stop()?; - // log::warn!("backward!"); - // drone.backward()?; - // std::thread::sleep(Duration::from_secs(1)); - // drone.stop()?; + log::warn!("backward!"); + drone.backward()?; + std::thread::sleep(Duration::from_secs(1)); + drone.stop()?; log::warn!("left!"); drone.strafe_left()?; @@ -38,17 +38,17 @@ fn main() -> Result<(), Box> { drone.strafe_right()?; std::thread::sleep(Duration::from_secs(1)); - // log::warn!("turn left!"); - // for _ in 0..30 { - // drone.turn_left()?; - // std::thread::sleep(Duration::from_millis(300)); - // } - - // log::warn!("turn right!"); - // for _ in 0..30 { - // drone.turn_right()?; - // std::thread::sleep(Duration::from_millis(300)); - // } + log::warn!("turn left!"); + for _ in 0..30 { + drone.turn_left()?; + std::thread::sleep(Duration::from_millis(300)); + } + + log::warn!("turn right!"); + for _ in 0..30 { + drone.turn_right()?; + std::thread::sleep(Duration::from_millis(300)); + } log::warn!("DOWN!"); drone.down()?;