26 lines
690 B
Rust
26 lines
690 B
Rust
//! MAVLink protocol adapter for Kaptan.
|
|
|
|
#![no_std]
|
|
|
|
/// MAVLink command decoders.
|
|
pub mod commands;
|
|
/// MAVLink frame encoding API for boards.
|
|
pub mod encoder;
|
|
/// Serial-byte MAVLink receive API for boards.
|
|
pub mod receiver;
|
|
/// UART DMA MAVLink frame transmission API for boards.
|
|
pub mod transmitter;
|
|
|
|
/// An owned MAVLink 2 frame suitable for UART transmission.
|
|
pub type MavlinkFrame = message::MAVLinkV2MessageRaw;
|
|
|
|
/// Supported MAVLink message types for Kaptan.
|
|
pub mod message {
|
|
pub use mavlink::MAVLinkV2MessageRaw;
|
|
pub use mavlink::MavHeader;
|
|
pub use mavlink::dialects::common::*;
|
|
|
|
#[cfg(kaptan_has_messages)]
|
|
include!(concat!(env!("OUT_DIR"), "/mod.rs"));
|
|
}
|