pub trait MessageSpec {
// Required methods
fn id(&self) -> u32;
fn min_supported_mavlink_version(&self) -> MavLinkVersion;
fn crc_extra(&self) -> u8;
}
Expand description
Generic MAVLink message specification.
MessageInfo
implements this trait.
Messages generated by MAVSpec also implement this trait.
Required Methods§
Sourcefn id(&self) -> u32
fn id(&self) -> u32
Sourcefn min_supported_mavlink_version(&self) -> MavLinkVersion
fn min_supported_mavlink_version(&self) -> MavLinkVersion
Minimum supported MAVLink protocol version.
Messages supporting both MAVLink 1
and MAVLink 2
will return MavLinkVersion::V1
.
Messages which make sense only in MAVLink 2
will return MavLinkVersion::V2
,
Sourcefn crc_extra(&self) -> u8
fn crc_extra(&self) -> u8
Message EXTRA_CRC
calculated from message XML definition.
CRC for message name and key message fields to detect incompatible changes in message definition.
See: CRC_EXTRA calculation in MAVLink docs.