Asv Mavlink Help

Heartbeat

The heartbeat microservice is used to detect and monitor devices in a MAVLink network. It works by sending and receiving a special message — the HeartbeatPayload. This message contains basic information about a device (such as type, system status, modes, etc.) and is used to determine whether the device is alive.

The heartbeat microservice can be used in two roles:

  • A client implementing IHeartbeatClient
    (for example, a ground control app) receives heartbeat messages and can decide whether the device is online or disconnected.

  • A server implementing IHeartbeatServer
    (for example, a drone) sends out heartbeat messages with its current state.

HeartbeatPayload (source)

Here is a quick reference for our HeartbeatPayload type, an implementation of MAVLink heartbeat message.

Property

Type

Description

Type

MavType

Type of the component.

Autopilot

MavAutopilot

Autopilot type.

BaseMode

MavModeFlag

System mode bitmap.

CustomMode

uint

A bitfield for use for autopilot-specific flags.

SystemStatus

MavState

System status flag.

MavlinkVersion

byte

MAVLink version.

Last modified: 01 October 2025