pub struct MsgDops {
pub sender_id: Option<u16>,
pub tow: u32,
pub gdop: u16,
pub pdop: u16,
pub tdop: u16,
pub hdop: u16,
pub vdop: u16,
pub flags: u8,
}
Expand description
Dilution of Precision
This dilution of precision (DOP) message describes the effect of navigation satellite geometry on positional measurement precision. The flags field indicated whether the DOP reported corresponds to differential or SPP solution.
Fields
sender_id: Option<u16>
The message sender_id
tow: u32
GPS Time of Week
gdop: u16
Geometric Dilution of Precision
pdop: u16
Position Dilution of Precision
tdop: u16
Time Dilution of Precision
hdop: u16
Horizontal Dilution of Precision
vdop: u16
Vertical Dilution of Precision
flags: u8
Indicates the position solution with which the DOPS message corresponds
Implementations
sourceimpl MsgDops
impl MsgDops
sourcepub fn raim_repair_flag(&self) -> bool
pub fn raim_repair_flag(&self) -> bool
Gets the raim_repair_flag
flag.
sourcepub fn set_raim_repair_flag(&mut self, raim_repair_flag: bool)
pub fn set_raim_repair_flag(&mut self, raim_repair_flag: bool)
Sets the raim_repair_flag
flag.
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 ConcreteMessage for MsgDops
impl ConcreteMessage for MsgDops
sourceconst MESSAGE_TYPE: u16 = 520u16
const MESSAGE_TYPE: u16 = 520u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_DOPS"
const MESSAGE_NAME: &'static str = "MSG_DOPS"
The message name.
sourceimpl SbpMessage for MsgDops
impl SbpMessage for MsgDops
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 MsgDops
impl Send for MsgDops
impl Sync for MsgDops
impl Unpin for MsgDops
impl UnwindSafe for MsgDops
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