MavMessage

interface MavMessage<T : MavMessage<T>>

A high level MAVLink message.

MAVLink messages are defined in XML files and represented as data classes in mavlink-kotlin.

Types

Link copied to clipboard

The companion object for a MavMessage, which contains the MAVLink metadata and the MavDeserializer implementation for the message.

Properties

Link copied to clipboard

The instance property which returns MavCompanion of this class.

Functions

Link copied to clipboard
abstract fun serializeV1(): ByteArray

Serializes the message to a ByteArray according to MAVLink v1 scheme. Extensions are not serialized.

Link copied to clipboard
abstract fun serializeV2(): ByteArray

Serializes the message to a ByteArray according to MAVLink v2 scheme. Extensions are also serialized and payload truncation is applied.