Struct sbp::messages::navigation::msg_pos_llh_cov_gnss::MsgPosLlhCovGnss
source · [−]pub struct MsgPosLlhCovGnss {}
Expand description
GNSS-only Geodetic Position
This position solution message reports the absolute geodetic coordinates and the status (single point vs pseudo-absolute RTK) of the position solution as well as the upper triangle of the 3x3 covariance matrix. The position information and Fix Mode flags should follow the MSG_POS_LLH message. Since the covariance matrix is computed in the local-level North, East, Down frame, the covariance terms follow with that convention. Thus, covariances are reported against the “downward” measurement and care should be taken with the sign convention.
Fields
sender_id: Option<u16>
The message sender_id
tow: u32
GPS Time of Week
lat: f64
Latitude
lon: f64
Longitude
height: f64
Height above WGS84 ellipsoid
cov_n_n: f32
Estimated variance of northing
cov_n_e: f32
Covariance of northing and easting
cov_n_d: f32
Covariance of northing and downward measurement
cov_e_e: f32
Estimated variance of easting
cov_e_d: f32
Covariance of easting and downward measurement
cov_d_d: f32
Estimated variance of downward measurement
n_sats: u8
Number of satellites used in solution.
flags: u8
Status flags
Implementations
sourceimpl MsgPosLlhCovGnss
impl MsgPosLlhCovGnss
sourcepub fn fix_mode(&self) -> Result<FixMode, u8>
pub fn fix_mode(&self) -> Result<FixMode, u8>
Gets the FixMode stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known FixMode
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 FixMode
were added.
sourcepub fn set_fix_mode(&mut self, fix_mode: FixMode)
pub fn set_fix_mode(&mut self, fix_mode: FixMode)
Set the bitrange corresponding to the FixMode of the flags
bitfield.
Trait Implementations
sourceimpl Clone for MsgPosLlhCovGnss
impl Clone for MsgPosLlhCovGnss
sourcefn clone(&self) -> MsgPosLlhCovGnss
fn clone(&self) -> MsgPosLlhCovGnss
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 MsgPosLlhCovGnss
impl ConcreteMessage for MsgPosLlhCovGnss
sourceconst MESSAGE_TYPE: u16 = 561u16
const MESSAGE_TYPE: u16 = 561u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_POS_LLH_COV_GNSS"
const MESSAGE_NAME: &'static str = "MSG_POS_LLH_COV_GNSS"
The message name.
sourceimpl Debug for MsgPosLlhCovGnss
impl Debug for MsgPosLlhCovGnss
sourceimpl From<MsgPosLlhCovGnss> for Sbp
impl From<MsgPosLlhCovGnss> for Sbp
sourcefn from(msg: MsgPosLlhCovGnss) -> Self
fn from(msg: MsgPosLlhCovGnss) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgPosLlhCovGnss
impl SbpMessage for MsgPosLlhCovGnss
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 MsgPosLlhCovGnss
impl Send for MsgPosLlhCovGnss
impl Sync for MsgPosLlhCovGnss
impl Unpin for MsgPosLlhCovGnss
impl UnwindSafe for MsgPosLlhCovGnss
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more