Struct sbp::messages::navigation::msg_gps_time_dep_a::MsgGpsTimeDepA
source · [−]pub struct MsgGpsTimeDepA {
pub sender_id: Option<u16>,
pub wn: u16,
pub tow: u32,
pub ns_residual: i32,
pub flags: u8,
}
Expand description
GPS Time (v1.0)
This message reports the GPS time, representing the time since the GPS epoch began on midnight January 6, 1980 UTC. GPS time counts the weeks and seconds of the week. The weeks begin at the Saturday/Sunday transition. GPS week 0 began at the beginning of the GPS time scale.
Within each week number, the GPS time of the week is between between 0 and 604800 seconds (=606024*7). Note that GPS time does not accumulate leap seconds, and as of now, has a small offset from UTC. In a message stream, this message precedes a set of other navigation messages referenced to the same time (but lacking the ns field) and indicates a more precise time of these messages.
Fields
sender_id: Option<u16>
The message sender_id
wn: u16
GPS week number
tow: u32
GPS time of week rounded to the nearest millisecond
ns_residual: i32
Nanosecond residual of millisecond-rounded TOW (ranges from -500000 to 500000)
flags: u8
Status flags (reserved)
Trait Implementations
sourceimpl Clone for MsgGpsTimeDepA
impl Clone for MsgGpsTimeDepA
sourcefn clone(&self) -> MsgGpsTimeDepA
fn clone(&self) -> MsgGpsTimeDepA
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 MsgGpsTimeDepA
impl ConcreteMessage for MsgGpsTimeDepA
sourceconst MESSAGE_TYPE: u16 = 256u16
const MESSAGE_TYPE: u16 = 256u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_GPS_TIME_DEP_A"
const MESSAGE_NAME: &'static str = "MSG_GPS_TIME_DEP_A"
The message name.
sourceimpl Debug for MsgGpsTimeDepA
impl Debug for MsgGpsTimeDepA
sourceimpl From<MsgGpsTimeDepA> for Sbp
impl From<MsgGpsTimeDepA> for Sbp
sourcefn from(msg: MsgGpsTimeDepA) -> Self
fn from(msg: MsgGpsTimeDepA) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgGpsTimeDepA
impl SbpMessage for MsgGpsTimeDepA
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 MsgGpsTimeDepA
impl Send for MsgGpsTimeDepA
impl Sync for MsgGpsTimeDepA
impl Unpin for MsgGpsTimeDepA
impl UnwindSafe for MsgGpsTimeDepA
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