Skip to main content

Module drivers

Module drivers 

Source
Expand description

Real ByteLink drivers over serial ports, UDP, and TCP.

The wire core and the Vehicle are written against the ByteLink seam, so a real autopilot is reached by plugging one of these drivers into it: a serial line to a flight controller, or a UDP or TCP socket to a SITL simulator or a ground-station bridge. PX4 SITL exposes MAVLink over UDP; ArduPilot SITL exposes it over TCP (port 5760) and can also be told to send UDP; a companion computer wired to a Pixhawk speaks it over serial.

These drivers are available with the default std feature and run on the tokio runtime; the serial driver additionally needs the serial feature, which pulls in a serial-port backend.

Structsยง

TcpLink
A TCP stream presented as a ByteLink.
UdpLink
A UDP socket presented as a ByteLink.