You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rust wrapper is based on a gRPC client communicating with the gRPC server written in C++.
The wrapper is potentially auto-generated from the message definitions (proto files).
Update Rust for async/await support (first time)
$ rustup update
Build
note that building mavsdk-rust requires the protoc compiler to be installed.
$ cargo build
Run examples
Run MAVSDK Backend on localhost:50051
Run examples
$ cargo run --example info
$ cargo run --example mocap
$ cargo run --example telemetry
Expected examples output
info
$ cargo run --example info
Finished dev [unoptimized + debuginfo] target(s) in 0.01s
Running `target/debug/examples/info`
Version received: Version { flight_sw_major: 1, flight_sw_minor: 10, flight_sw_patch: 0, flight_sw_vendor_major: 0, flight_sw_vendor_minor: 0, flight_sw_vendor_patch: 0, os_sw_major: 8, os_sw_minor: 2, os_sw_patch: 0 }
mocap
$ cargo run --example mocap
Finished dev [unoptimized + debuginfo] target(s) in 0.31s
Running `target/debug/examples/mocap`
All sended successfully!