pub struct GpsRawInt {
pub time_usec: u64,
pub lat: i32,
pub lon: i32,
pub alt: i32,
pub eph: u16,
pub epv: u16,
pub vel: u16,
pub cog: u16,
pub fix_type: u8,
pub satellites_visible: u8,
}Expand description
GPS_RAW_INT: the raw GPS fix: position, accuracy, speed, and satellite count.
Fields§
§time_usec: u64§lat: i32§lon: i32§alt: i32§eph: u16§epv: u16§vel: u16§cog: u16§fix_type: u8§satellites_visible: u8Implementations§
Trait Implementations§
impl Copy for GpsRawInt
Source§impl Message for GpsRawInt
impl Message for GpsRawInt
Source§const NAME: &'static str = "GPS_RAW_INT"
const NAME: &'static str = "GPS_RAW_INT"
The message name, such as
"HEARTBEAT", as used to derive CRC_EXTRA.Source§const CRC_EXTRA: u8 = 24
const CRC_EXTRA: u8 = 24
The
CRC_EXTRA seed folded into the checksum of a frame carrying this message.Source§const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
const BASE_FIELDS: &'static [(&'static str, &'static str, u8)]
The base fields in wire order as
(type, name, array_len), the input from which
CRC_EXTRA is derived and against which it is verified.Source§const DESCRIPTOR: &'static MessageDescriptor<'static>
const DESCRIPTOR: &'static MessageDescriptor<'static>
The message’s shape as data: the runtime counterpart of this type’s fields, for a
caller reading and writing by name rather than through the struct.
impl StructuralPartialEq for GpsRawInt
Auto Trait Implementations§
impl Freeze for GpsRawInt
impl RefUnwindSafe for GpsRawInt
impl Send for GpsRawInt
impl Sync for GpsRawInt
impl Unpin for GpsRawInt
impl UnsafeUnpin for GpsRawInt
impl UnwindSafe for GpsRawInt
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