Struct sbp::messages::orientation::msg_baseline_heading::MsgBaselineHeading
source · [−]pub struct MsgBaselineHeading {
pub sender_id: Option<u16>,
pub tow: u32,
pub heading: u32,
pub n_sats: u8,
pub flags: u8,
}
Expand description
Heading relative to True North
This message reports the baseline heading pointing from the base station to the rover relative to True North. The full GPS time is given by the preceding MSG_GPS_TIME with the matching time-of-week (tow). It is intended that time-matched RTK mode is used when the base station is moving.
Fields
sender_id: Option<u16>
The message sender_id
tow: u32
GPS Time of Week
heading: u32
Heading
n_sats: u8
Number of satellites used in solution
flags: u8
Status flags
Implementations
sourceimpl MsgBaselineHeading
impl MsgBaselineHeading
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 MsgBaselineHeading
impl Clone for MsgBaselineHeading
sourcefn clone(&self) -> MsgBaselineHeading
fn clone(&self) -> MsgBaselineHeading
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 MsgBaselineHeading
impl ConcreteMessage for MsgBaselineHeading
sourceconst MESSAGE_TYPE: u16 = 527u16
const MESSAGE_TYPE: u16 = 527u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_BASELINE_HEADING"
const MESSAGE_NAME: &'static str = "MSG_BASELINE_HEADING"
The message name.
sourceimpl Debug for MsgBaselineHeading
impl Debug for MsgBaselineHeading
sourceimpl From<MsgBaselineHeading> for Sbp
impl From<MsgBaselineHeading> for Sbp
sourcefn from(msg: MsgBaselineHeading) -> Self
fn from(msg: MsgBaselineHeading) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgBaselineHeading
impl SbpMessage for MsgBaselineHeading
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 MsgBaselineHeading
impl Send for MsgBaselineHeading
impl Sync for MsgBaselineHeading
impl Unpin for MsgBaselineHeading
impl UnwindSafe for MsgBaselineHeading
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