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§
source§impl 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§
source§impl Clone for MsgBaselineHeading
impl Clone for MsgBaselineHeading
source§fn clone(&self) -> MsgBaselineHeading
fn clone(&self) -> MsgBaselineHeading
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl ConcreteMessage for MsgBaselineHeading
impl ConcreteMessage for MsgBaselineHeading
source§const MESSAGE_TYPE: u16 = 527u16
const MESSAGE_TYPE: u16 = 527u16
The message type.
source§const MESSAGE_NAME: &'static str = "MSG_BASELINE_HEADING"
const MESSAGE_NAME: &'static str = "MSG_BASELINE_HEADING"
The message name.
source§impl Debug for MsgBaselineHeading
impl Debug for MsgBaselineHeading
source§impl<'de> Deserialize<'de> for MsgBaselineHeading
impl<'de> Deserialize<'de> for MsgBaselineHeading
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FriendlyName for MsgBaselineHeading
impl FriendlyName for MsgBaselineHeading
fn friendly_name() -> &'static str
source§impl From<MsgBaselineHeading> for Sbp
impl From<MsgBaselineHeading> for Sbp
source§fn from(msg: MsgBaselineHeading) -> Self
fn from(msg: MsgBaselineHeading) -> Self
Converts to this type from the input type.
source§impl PartialEq for MsgBaselineHeading
impl PartialEq for MsgBaselineHeading
source§impl SbpMessage for MsgBaselineHeading
impl SbpMessage for MsgBaselineHeading
source§fn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
source§fn message_type(&self) -> Option<u16>
fn message_type(&self) -> Option<u16>
Get the message type.
source§fn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
source§fn is_valid(&self) -> bool
fn is_valid(&self) -> bool
Tells you if the message is valid or if it is not a valid message and may need to be
special cased at certain points.
fn into_valid_msg(self) -> Result<Self, Invalid>
source§fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>
fn gps_time(&self) -> Option<Result<MessageTime, GpsTimeError>>
Get the GPS time associated with the message.
source§fn friendly_name(&self) -> &'static str
fn friendly_name(&self) -> &'static str
Get friendly name associated with the message.
source§impl Serialize for MsgBaselineHeading
impl Serialize for MsgBaselineHeading
source§impl TryFrom<Sbp> for MsgBaselineHeading
impl TryFrom<Sbp> for MsgBaselineHeading
impl StructuralPartialEq for MsgBaselineHeading
Auto Trait Implementations§
impl Freeze for MsgBaselineHeading
impl RefUnwindSafe for MsgBaselineHeading
impl Send for MsgBaselineHeading
impl Sync for MsgBaselineHeading
impl Unpin for MsgBaselineHeading
impl UnwindSafe for MsgBaselineHeading
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Event for Twhere
T: ConcreteMessage,
impl<T> Event for Twhere
T: ConcreteMessage,
source§const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];
const MESSAGE_TYPES: &'static [u16] = const MESSAGE_TYPES: &'static [u16] = &[T::MESSAGE_TYPE];
The message types that correspond to this event. An empty slice means all messages.