pub struct GLOBAL_POSITION_DATA {
pub time_usec: u64,
pub lat: i32,
pub lon: i32,
pub alt: f32,
pub alt_ellipsoid: f32,
pub eph: f32,
pub epv: f32,
pub id: u8,
pub source: GlobalPositionSrc,
pub flags: GlobalPositionFlags,
}Available on crate feature
development only.Expand description
Global position measurement or estimate.
ID: 296
Fields§
§time_usec: u64Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude of the number.
lat: i32Latitude (WGS84)
lon: i32Longitude (WGS84)
alt: f32Altitude (MSL - position-system specific value)
alt_ellipsoid: f32Altitude (WGS84 elipsoid)
eph: f32Standard deviation of horizontal position error
epv: f32Standard deviation of vertical position error
id: u8Sensor ID
source: GlobalPositionSrcSource of position/estimate (such as GNSS, estimator, etc.)
flags: GlobalPositionFlagsStatus flags
Implementations§
Source§impl GLOBAL_POSITION_DATA
impl GLOBAL_POSITION_DATA
pub const ENCODED_LEN: usize = 35usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for GLOBAL_POSITION_DATA
impl Clone for GLOBAL_POSITION_DATA
Source§fn clone(&self) -> GLOBAL_POSITION_DATA
fn clone(&self) -> GLOBAL_POSITION_DATA
Returns a duplicate 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 Debug for GLOBAL_POSITION_DATA
impl Debug for GLOBAL_POSITION_DATA
Source§impl Default for GLOBAL_POSITION_DATA
impl Default for GLOBAL_POSITION_DATA
Source§impl<'de> Deserialize<'de> for GLOBAL_POSITION_DATA
impl<'de> Deserialize<'de> for GLOBAL_POSITION_DATA
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 MessageData for GLOBAL_POSITION_DATA
impl MessageData for GLOBAL_POSITION_DATA
Source§impl PartialEq for GLOBAL_POSITION_DATA
impl PartialEq for GLOBAL_POSITION_DATA
Source§impl Serialize for GLOBAL_POSITION_DATA
impl Serialize for GLOBAL_POSITION_DATA
impl StructuralPartialEq for GLOBAL_POSITION_DATA
Auto Trait Implementations§
impl Freeze for GLOBAL_POSITION_DATA
impl RefUnwindSafe for GLOBAL_POSITION_DATA
impl Send for GLOBAL_POSITION_DATA
impl Sync for GLOBAL_POSITION_DATA
impl Unpin for GLOBAL_POSITION_DATA
impl UnsafeUnpin for GLOBAL_POSITION_DATA
impl UnwindSafe for GLOBAL_POSITION_DATA
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