async-mavlink
Async adapter for the mavlink crate
The mavlink crate offers a low level API for MAVLink connections. This crate adds a thin async API on top of that. The most important feature is a subscribe based communication model. It allows the user to subscribe to a certain type of message. All subsequent messages of that type then can be received in a async stream. In order for this to function, it is necessary to execute the event loop of the connector as a task. This crate aims to be executor independent, e.g. it should work with all async executors.
This so far is only a proof of concept. While it might serve your usecase well, expect things to break. Contributions and suggestions are wellcome!
Example: Pulling all Parameters from a Vehicle
In this example the subscribe method is utilized to collect all parameters of the vehicle.
use HashMap;
use *;
use ;
use *;
block_on
License: MIT OR Apache-2.0