MavRawFrame
data class MavRawFrame(val stx: UByte, val len: UByte, val incompatFlags: UByte, val compatFlags: UByte, val seq: UByte, val systemId: UByte, val componentId: UByte, val messageId: UInt, val payload: ByteArray, val checksum: UShort, val signatureLinkId: UByte, val signatureTimestamp: UInt, val signature: ByteArray, val rawBytes: ByteArray)
Represents a mid-level MAVLink Frame, i.e., a frame that is in between a fully deserialized high-level object, and a wire-format ByteArray.
Note: Several functions of this class are not fault-tolerant. They assume that the input raw bytes are valid ByteArrays. For example, generateSignature assumes that its input frameBytes
is a correct MAVLink v2 frame in the form of raw bytes. Therefore, the users of this class should be careful while using it.
Refer: MAVLink Serialization