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.
This message contains all metadata about the sensors received and/or used in computing the Fuzed Solution. It focuses primarily, but not only, on GNSS metadata.
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
sourceimpl 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
sourceimpl Clone for MsgSolnMetaDepA
impl Clone for MsgSolnMetaDepA
sourcefn clone(&self) -> MsgSolnMetaDepA
fn clone(&self) -> MsgSolnMetaDepA
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgSolnMetaDepA
impl ConcreteMessage for MsgSolnMetaDepA
sourceconst MESSAGE_TYPE: u16
const MESSAGE_TYPE: u16
The message type.
sourceconst MESSAGE_NAME: &'static str
const MESSAGE_NAME: &'static str
The message name.
sourceimpl Debug for MsgSolnMetaDepA
impl Debug for MsgSolnMetaDepA
sourceimpl From<MsgSolnMetaDepA> for Sbp
impl From<MsgSolnMetaDepA> for Sbp
sourcefn from(msg: MsgSolnMetaDepA) -> Self
fn from(msg: MsgSolnMetaDepA) -> Self
Performs the conversion.
sourceimpl SbpMessage for MsgSolnMetaDepA
impl SbpMessage for MsgSolnMetaDepA
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgSolnMetaDepA
impl Send for MsgSolnMetaDepA
impl Sync for MsgSolnMetaDepA
impl Unpin for MsgSolnMetaDepA
impl UnwindSafe for MsgSolnMetaDepA
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more