pub struct System {Show 13 fields
pub protocol_version: u8,
pub operator_location_type: OperatorLocationType,
pub classification_type: ClassificationType,
pub operator_latitude: f64,
pub operator_longitude: f64,
pub area_count: u16,
pub area_radius: u16,
pub area_ceiling: Option<f32>,
pub area_floor: Option<f32>,
pub category_eu: CategoryEu,
pub class_eu: ClassEu,
pub operator_altitude_geo: Option<f32>,
pub timestamp: u32,
}Expand description
System message: operator position and the operating area.
Fields§
§protocol_version: u8Protocol version from the header.
operator_location_type: OperatorLocationTypeSource of the operator position.
classification_type: ClassificationTypeClassification scheme.
operator_latitude: f64Operator latitude in degrees (0, 0 means unknown).
operator_longitude: f64Operator longitude in degrees.
area_count: u16Number of aircraft in the group (1 for a single aircraft).
area_radius: u16Radius of the group’s area in meters, 10 m steps up to 2550.
area_ceiling: Option<f32>Area ceiling in meters (WGS84).
area_floor: Option<f32>Area floor in meters (WGS84).
category_eu: CategoryEuEU category, when classification_type is EU.
class_eu: ClassEuEU class, when classification_type is EU.
operator_altitude_geo: Option<f32>Operator altitude in meters above the WGS84 ellipsoid.
timestamp: u32Seconds since 2019-01-01 00:00:00 UTC (0 when the transmitter predates F3411-22a).
Implementations§
Source§impl System
impl System
Sourcepub fn operator_position(&self) -> Option<(f64, f64)>
pub fn operator_position(&self) -> Option<(f64, f64)>
Operator latitude and longitude, or None for 0, 0 (unknown).
This is the raw position regardless of what it means. To tell where
the drone launched from apart from where the pilot is now, use
takeoff_position,
live_operator_position and
fixed_operator_position, which each
return a position only when the transmitter tagged it that way.
Sourcepub fn takeoff_position(&self) -> Option<(f64, f64)>
pub fn takeoff_position(&self) -> Option<(f64, f64)>
The takeoff / home point: where the aircraft launched from.
Returns a position only when the System message tags its operator
position as the takeoff location
(OperatorLocationType::Takeoff), which is the common case for a
ground control station that stays at the launch point. None for a
live or fixed operator position, or when the position is unset (0, 0).
This answers a question the pilot position cannot: an operator who needs to find the launch site, not the aircraft, reads it here.
Sourcepub fn live_operator_position(&self) -> Option<(f64, f64)>
pub fn live_operator_position(&self) -> Option<(f64, f64)>
The operator’s live GNSS position: where the pilot is right now.
Returns a position only when the System message tags its operator
position as a live fix (OperatorLocationType::LiveGnss), the case
for a controller that reports its own moving GNSS position. None
otherwise.
Sourcepub fn fixed_operator_position(&self) -> Option<(f64, f64)>
pub fn fixed_operator_position(&self) -> Option<(f64, f64)>
The operator’s fixed, declared ground position.
Returns a position only when the System message tags its operator
position as fixed (OperatorLocationType::Fixed). None otherwise.
Sourcepub fn unix_timestamp(&self) -> Option<u64>
pub fn unix_timestamp(&self) -> Option<u64>
The timestamp as Unix seconds, or None when it is 0 (not sent).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for System
Available on crate feature serde only.
impl<'de> Deserialize<'de> for System
serde only.