pub struct MsgVelCog {
    pub sender_id: Option<u16>,
    pub tow: u32,
    pub cog: u32,
    pub sog: u32,
    pub v_up: i32,
    pub cog_accuracy: u32,
    pub sog_accuracy: u32,
    pub v_up_accuracy: u32,
    pub flags: u16,
}
Expand description

Velocity expressed as course over ground

This message reports the receiver course over ground (COG) and speed over ground (SOG) based on the horizontal (N-E) components of the NED velocity vector. It also includes the vertical velocity coordinate. A flag is provided to indicate whether the COG value has been frozen. When the flag is set to true, the COG field is set to its last valid value until the system exceeds a minimum velocity threshold. No other fields are affected by this flag. The NED coordinate system is defined as the local WGS84 tangent plane centered at the current position. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). Note: course over ground represents the receiver’s direction of travel, but not necessarily the device heading.

Fields

sender_id: Option<u16>

The message sender_id

tow: u32

GPS Time of Week

cog: u32

Course over ground relative to north direction

sog: u32

Speed over ground (based on horizontal velocity)

v_up: i32

Vertical velocity component (positive up)

cog_accuracy: u32

Course over ground estimated standard deviation

sog_accuracy: u32

Speed over ground estimated standard deviation

v_up_accuracy: u32

Vertical velocity estimated standard deviation

flags: u16

Status flags

Implementations

Gets the CogFrozen stored in the flags bitfield.

Returns Ok if the bitrange contains a known CogFrozen variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of CogFrozen were added.

Set the bitrange corresponding to the CogFrozen of the flags bitfield.

Gets the VerticalVelocityValidity stored in the flags bitfield.

Returns Ok if the bitrange contains a known VerticalVelocityValidity variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of VerticalVelocityValidity were added.

Set the bitrange corresponding to the VerticalVelocityValidity of the flags bitfield.

Gets the SogValidity stored in the flags bitfield.

Returns Ok if the bitrange contains a known SogValidity variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of SogValidity were added.

Set the bitrange corresponding to the SogValidity of the flags bitfield.

Gets the CogValidity stored in the flags bitfield.

Returns Ok if the bitrange contains a known CogValidity variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of CogValidity were added.

Set the bitrange corresponding to the CogValidity of the flags bitfield.

Gets the TypeOfReportedTow stored in the flags bitfield.

Returns Ok if the bitrange contains a known TypeOfReportedTow variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of TypeOfReportedTow were added.

Set the bitrange corresponding to the TypeOfReportedTow of the flags bitfield.

Gets the InsNavigationMode stored in the flags bitfield.

Returns Ok if the bitrange contains a known InsNavigationMode variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of InsNavigationMode were added.

Set the bitrange corresponding to the InsNavigationMode of the flags bitfield.

Gets the VelocityMode stored in the flags bitfield.

Returns Ok if the bitrange contains a known VelocityMode variant. Otherwise the value of the bitrange is returned as an Err(u8). This may be because of a malformed message, or because new variants of VelocityMode were added.

Set the bitrange corresponding to the VelocityMode of the flags bitfield.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The message type.

The message name.

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Get the message name.

Get the message type.

Get the sender_id if it is set.

Set the sender id.

Number of bytes this message will take on the wire.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.