Struct sbp::messages::navigation::msg_pos_llh_cov::MsgPosLlhCov
source · pub struct MsgPosLlhCov {}
Expand description
Geodetic Position with Covariances
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 follow the MSG_POS_LLH message. Since the covariance matrix is computed in the local-level North, East, Down frame, the covariance terms follow that convention. Thus, covariances are reported against the “downward” measurement and care should be taken with the sign convention.
The values in this message are from GNSS measurements fused with inertial measurements. To get values from GNSS measurements only use MSG_POS_LLH_COV_GNSS.
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§
source§impl MsgPosLlhCov
impl MsgPosLlhCov
sourcepub fn type_of_reported_tow(&self) -> Result<TypeOfReportedTow, u8>
pub fn type_of_reported_tow(&self) -> Result<TypeOfReportedTow, u8>
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.
sourcepub fn set_type_of_reported_tow(
&mut self,
type_of_reported_tow: TypeOfReportedTow
)
pub fn set_type_of_reported_tow( &mut self, type_of_reported_tow: TypeOfReportedTow )
Set the bitrange corresponding to the TypeOfReportedTow of the flags
bitfield.
Gets the InertialNavigationMode stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known InertialNavigationMode
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 InertialNavigationMode
were added.
Set the bitrange corresponding to the InertialNavigationMode of the flags
bitfield.
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§
source§impl Clone for MsgPosLlhCov
impl Clone for MsgPosLlhCov
source§fn clone(&self) -> MsgPosLlhCov
fn clone(&self) -> MsgPosLlhCov
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgPosLlhCov
impl ConcreteMessage for MsgPosLlhCov
source§const MESSAGE_TYPE: u16 = 529u16
const MESSAGE_TYPE: u16 = 529u16
source§const MESSAGE_NAME: &'static str = "MSG_POS_LLH_COV"
const MESSAGE_NAME: &'static str = "MSG_POS_LLH_COV"
source§impl Debug for MsgPosLlhCov
impl Debug for MsgPosLlhCov
source§impl<'de> Deserialize<'de> for MsgPosLlhCov
impl<'de> Deserialize<'de> for MsgPosLlhCov
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 MsgPosLlhCov
impl FriendlyName for MsgPosLlhCov
fn friendly_name() -> &'static str
source§impl From<MsgPosLlhCov> for Sbp
impl From<MsgPosLlhCov> for Sbp
source§fn from(msg: MsgPosLlhCov) -> Self
fn from(msg: MsgPosLlhCov) -> Self
source§impl PartialEq for MsgPosLlhCov
impl PartialEq for MsgPosLlhCov
source§fn eq(&self, other: &MsgPosLlhCov) -> bool
fn eq(&self, other: &MsgPosLlhCov) -> bool
self
and other
values to be equal, and is used
by ==
.