Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1115cd5 commit 70c70f6Copy full SHA for 70c70f6
1 file changed
mav-sdk/examples/takeoff.rs
@@ -80,4 +80,21 @@ async fn flight(mut drone: Drone) {
80
if let Some(next_message) = telemetry_streaming.message().await.unwrap() {
81
println!("{:?}", next_message);
82
}
83
+
84
+ sleep(Duration::from_secs(5));
85
86
+ let land_request = mav_sdk::grpc::action::LandRequest {};
87
+ let land_response = drone.action.land(land_request).await.unwrap();
88
89
+ println!(
90
+ "Landing: {}",
91
+ &land_response
92
+ .get_ref()
93
+ .action_result
94
+ .as_ref()
95
+ .unwrap()
96
+ .result_str
97
+ );
98
99
+ println!("the eagle has (hopefully) landed!");
100
0 commit comments