mavrouter

Crates.iomavrouter
lib.rsmavrouter
version0.1.4
created_at2025-11-24 02:02:00.097218+00
updated_at2025-11-28 04:20:36.601816+00
descriptionMAVLink router
homepagehttps://github.com/luofang34/mavrouter-rs
repositoryhttps://github.com/luofang34/mavrouter-rs
max_upload_size
id1947275
size400,028
Fang Luo (luofang34)

documentation

https://docs.rs/mavrouter

README

MAVRouter

CI codecov crates.io docs.rs License

A lightweight MAVLink router.

Quick Start

Install from crates.io:

cargo install mavrouter

Basic usage:

# Create config file
cat > mavrouter.toml <<EOF
[general]
tcp_port = 5760
[[endpoint]]
type = "serial"
device = "/dev/ttyACM0"
baud = 115200
EOF

# Run the router
mavrouter --config mavrouter.toml

Usage

Build

cargo build --release

Configuration

Example mavrouter.toml:

[general]
tcp_port = 5760
log = "logs"
log_telemetry = true
bus_capacity = 1000
routing_table_ttl_secs = 300

[[endpoint]]
type = "serial"
device = "/dev/ttyACM0"
baud = 115200

[[endpoint]]
type = "udp"
address = "0.0.0.0:14550"
mode = "server"

Run

./target/release/mavrouter --config mavrouter.toml
Commit count: 0

cargo fmt