pub struct MsgSolnMeta {
    pub sender_id: Option<u16>,
    pub tow: u32,
    pub pdop: u16,
    pub hdop: u16,
    pub vdop: u16,
    pub age_corrections: u16,
    pub age_gnss: u32,
    pub sol_in: Vec<SolutionInputType>,
}
Expand description

Solution Sensors Metadata

This message contains all metadata about the sensors received and/or used in computing the sensorfusion solution. It focuses primarily, but not only, on GNSS metadata. Regarding the age of the last received valid GNSS solution, the highest two bits are time status, indicating whether age gnss can or can not be used to retrieve time of measurement (noted TOM, also known as time of validity) If it can, subtract ‘age gnss’ from ‘tow’ in navigation messages to get TOM. Can be used before alignment is complete in the Fusion Engine, when output solution is the last received valid GNSS solution and its tow is not a TOM.

Fields

sender_id: Option<u16>

The message sender_id

tow: u32

GPS time of week rounded to the nearest millisecond

pdop: u16

Position Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates invalid)

hdop: u16

Horizontal Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates invalid)

vdop: u16

Vertical Dilution of Precision as per last available DOPS from PVT engine (0xFFFF indicates invalid)

age_corrections: u16

Age of corrections as per last available AGE_CORRECTIONS from PVT engine (0xFFFF indicates invalid)

age_gnss: u32

Age and Time Status of the last received valid GNSS solution.

sol_in: Vec<SolutionInputType>

Array of Metadata describing the sensors potentially involved in the solution. Each element in the array represents a single sensor type and consists of flags containing (meta)data pertaining to that specific single sensor. Refer to each (XX)InputType descriptor in the present doc.

Implementations

Gets the TimeStatus stored in the age_gnss bitfield.

Returns Ok if the bitrange contains a known TimeStatus 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 TimeStatus were added.

Set the bitrange corresponding to the TimeStatus of the age_gnss bitfield.

Gets the age_of_the_last_received_valid_gnss_solution stored in age_gnss.

Sets the age_of_the_last_received_valid_gnss_solution bitrange of age_gnss.

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.