Skip to main content

Integrations · MAVLink

MAVLink

Autopilots talk to a port we bind.

What this gives you

What arrivesposition, attitude, battery, mode
What you can send8 commands, listed below
What it carriesvehicles

Connect one

  1. Turn the protocol on. Settings → Integrations → MAVLink → enable.
  2. Set the address, in the Listen on field. Leave it at udpin:0.0.0.0:14550 unless something else on the host already has that port.
  3. Point the device at us and power it on. It announces itself, and appears at the top of Settings → Assets → ADD under heard, not yet added. Press it to adopt. You are not typing a serial number.

The address format

MAVLink runs over UDP, TCP, Serial. These are the forms that parse:

TransportFormWhat it meansExample
UDPudpin:HOST:PORTWe bind and wait. The usual case: the device sends to us.udpin:0.0.0.0:14550
UDPudpout:HOST:PORTWe send to a fixed address and receive on the same socket.udpout:192.168.1.20:14550
TCPtcp:HOST:PORTWe open a stream to the device or its server.tcp:127.0.0.1:30003
Serialserial:DEVICE@BAUDA radio or an autopilot on a cable.serial:/dev/ttyUSB0@57600

When it is working

The vehicle appears in Settings → Assets with a live health state, and the Integrations row counts it. On the console, its card carries the commands it accepts.

If nothing arrives

SymptomWhere to look
Nothing arrives, and the row looks healthyNothing is reaching the address. Check the device is sending to this host and that no firewall sits between them.
It connects, then dropsTwo things are bound to the same port, or the device and the host disagree about which end dials. See the endpoint forms above.
It never appears as heardDiscovery is off on this link. It is off by default, so nothing is adopted until you say so.

Commands

Everything this protocol can carry. What a given vehicle accepts is whatever it advertises, which may be fewer.

VerbTakesDoes
armnothingEnergise the motors.
disarmnothingDe-energise the motors.
takeoffan altitudeDepart to a working altitude.
landnothingDescend and land in place.
return_to_basenothingFly home and land.
holdnothingHold position.
move_toa pointGo to a single point.
follow_routean ordered routeFly a route of points.

The protocol itself

The standard, or the vendor's own page: MAVLink documentation.

Where to go next