Struct sbp::messages::navigation::msg_baseline_ecef::MsgBaselineEcef
source · pub struct MsgBaselineEcef {
pub sender_id: Option<u16>,
pub tow: u32,
pub x: i32,
pub y: i32,
pub z: i32,
pub accuracy: u16,
pub n_sats: u8,
pub flags: u8,
}
Expand description
GNSS-only Baseline Position in ECEF
This message reports the baseline solution in Earth Centered Earth Fixed (ECEF) coordinates. This baseline is the relative vector distance from the base station to the rover receiver. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow).
The values in this message are from GNSS measurements only.
Fields§
§sender_id: Option<u16>
The message sender_id
tow: u32
GPS Time of Week
x: i32
Baseline ECEF X coordinate
y: i32
Baseline ECEF Y coordinate
z: i32
Baseline ECEF Z coordinate
accuracy: u16
Position estimated standard deviation
n_sats: u8
Number of satellites used in solution
flags: u8
Status flags
Implementations§
source§impl MsgBaselineEcef
impl MsgBaselineEcef
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 MsgBaselineEcef
impl Clone for MsgBaselineEcef
source§fn clone(&self) -> MsgBaselineEcef
fn clone(&self) -> MsgBaselineEcef
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl ConcreteMessage for MsgBaselineEcef
impl ConcreteMessage for MsgBaselineEcef
source§const MESSAGE_TYPE: u16 = 523u16
const MESSAGE_TYPE: u16 = 523u16
source§const MESSAGE_NAME: &'static str = "MSG_BASELINE_ECEF"
const MESSAGE_NAME: &'static str = "MSG_BASELINE_ECEF"
source§impl Debug for MsgBaselineEcef
impl Debug for MsgBaselineEcef
source§impl<'de> Deserialize<'de> for MsgBaselineEcef
impl<'de> Deserialize<'de> for MsgBaselineEcef
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 MsgBaselineEcef
impl FriendlyName for MsgBaselineEcef
fn friendly_name() -> &'static str
source§impl From<MsgBaselineEcef> for Sbp
impl From<MsgBaselineEcef> for Sbp
source§fn from(msg: MsgBaselineEcef) -> Self
fn from(msg: MsgBaselineEcef) -> Self
source§impl PartialEq for MsgBaselineEcef
impl PartialEq for MsgBaselineEcef
source§fn eq(&self, other: &MsgBaselineEcef) -> bool
fn eq(&self, other: &MsgBaselineEcef) -> bool
self
and other
values to be equal, and is used
by ==
.