Struct sbp::messages::solution_meta::msg_soln_meta_dep_a::MsgSolnMetaDepA
source · pub struct MsgSolnMetaDepA {
pub sender_id: Option<u16>,
pub pdop: u16,
pub hdop: u16,
pub vdop: u16,
pub n_sats: u8,
pub age_corrections: u16,
pub alignment_status: u8,
pub last_used_gnss_pos_tow: u32,
pub last_used_gnss_vel_tow: u32,
pub sol_in: Vec<SolutionInputType>,
}
Expand description
Deprecated
Deprecated.
Fields§
§sender_id: Option<u16>
The message sender_id
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)
n_sats: u8
Number of satellites as per last available solution from PVT engine
age_corrections: u16
Age of corrections as per last available AGE_CORRECTIONS from PVT engine (0xFFFF indicates invalid)
alignment_status: u8
State of alignment and the status and receipt of the alignment inputs
last_used_gnss_pos_tow: u32
Tow of last-used GNSS position measurement
last_used_gnss_vel_tow: u32
Tow of last-used GNSS velocity measurement
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§
source§impl MsgSolnMetaDepA
impl MsgSolnMetaDepA
sourcepub fn alignment_status(&self) -> Result<AlignmentStatus, u8>
pub fn alignment_status(&self) -> Result<AlignmentStatus, u8>
Gets the AlignmentStatus stored in the alignment_status
bitfield.
Returns Ok
if the bitrange contains a known AlignmentStatus
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 AlignmentStatus
were added.
sourcepub fn set_alignment_status(&mut self, alignment_status: AlignmentStatus)
pub fn set_alignment_status(&mut self, alignment_status: AlignmentStatus)
Set the bitrange corresponding to the AlignmentStatus of the alignment_status
bitfield.
Trait Implementations§
source§impl Clone for MsgSolnMetaDepA
impl Clone for MsgSolnMetaDepA
source§fn clone(&self) -> MsgSolnMetaDepA
fn clone(&self) -> MsgSolnMetaDepA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgSolnMetaDepA
impl ConcreteMessage for MsgSolnMetaDepA
source§const MESSAGE_TYPE: u16 = 65_295u16
const MESSAGE_TYPE: u16 = 65_295u16
source§const MESSAGE_NAME: &'static str = "MSG_SOLN_META_DEP_A"
const MESSAGE_NAME: &'static str = "MSG_SOLN_META_DEP_A"
source§impl Debug for MsgSolnMetaDepA
impl Debug for MsgSolnMetaDepA
source§impl<'de> Deserialize<'de> for MsgSolnMetaDepA
impl<'de> Deserialize<'de> for MsgSolnMetaDepA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl FriendlyName for MsgSolnMetaDepA
impl FriendlyName for MsgSolnMetaDepA
fn friendly_name() -> &'static str
source§impl From<MsgSolnMetaDepA> for Sbp
impl From<MsgSolnMetaDepA> for Sbp
source§fn from(msg: MsgSolnMetaDepA) -> Self
fn from(msg: MsgSolnMetaDepA) -> Self
source§impl PartialEq for MsgSolnMetaDepA
impl PartialEq for MsgSolnMetaDepA
source§fn eq(&self, other: &MsgSolnMetaDepA) -> bool
fn eq(&self, other: &MsgSolnMetaDepA) -> bool
self
and other
values to be equal, and is used
by ==
.