pub struct AisVessel {Show 17 fields
pub mmsi: u32,
pub lat: i32,
pub lon: i32,
pub cog: u16,
pub heading: u16,
pub velocity: u16,
pub turn_rate: i8,
pub navigational_status: AisNavStatus,
pub type_: AisType,
pub dimension_bow: u16,
pub dimension_stern: u16,
pub dimension_port: u8,
pub dimension_starboard: u8,
pub callsign: [u8; 7],
pub name: [u8; 20],
pub tslc: u16,
pub flags: AisFlags,
}Expand description
MAVLink AIS_VESSEL message.
The minimum supported MAVLink version is MAVLink 2.
§Description
The location and information of an AIS vessel
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
AisVessel (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§mmsi: u32MAVLink field MMSI.
Mobile Marine Service Identifier, 9 decimal digits
lat: i32MAVLink field lat.
Latitude
lon: i32MAVLink field lon.
Longitude
cog: u16MAVLink field COG.
Course over ground
heading: u16MAVLink field heading.
True heading
velocity: u16MAVLink field velocity.
Speed over ground
turn_rate: i8MAVLink field turn_rate.
Turn rate
MAVLink field navigational_status.
Navigational status
type_: AisTypeMAVLink field type.
Type of vessels
dimension_bow: u16MAVLink field dimension_bow.
Distance from lat/lon location to bow
dimension_stern: u16MAVLink field dimension_stern.
Distance from lat/lon location to stern
dimension_port: u8MAVLink field dimension_port.
Distance from lat/lon location to port side
dimension_starboard: u8MAVLink field dimension_starboard.
Distance from lat/lon location to starboard side
callsign: [u8; 7]MAVLink field callsign.
The vessel callsign
name: [u8; 20]MAVLink field name.
The vessel name
tslc: u16MAVLink field tslc.
Time since last communication in seconds
flags: AisFlagsMAVLink field flags.
Bitmask to indicate various statuses including valid data fields
Implementations§
Source§impl AisVessel
impl AisVessel
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AisVessel
impl<'de> Deserialize<'de> for AisVessel
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AisVessel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AisVessel, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl IntoPayload for AisVessel
impl IntoPayload for AisVessel
Source§impl MessageSpec for AisVessel
impl MessageSpec for AisVessel
Source§impl MessageSpecStatic for AisVessel
impl MessageSpecStatic for AisVessel
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for AisVessel
impl NamedType for AisVessel
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl Serialize for AisVessel
impl Serialize for AisVessel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl Type for AisVessel
impl Type for AisVessel
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.