pub struct Waypoint {
pub time: u64,
pub latitude: Option<f64>,
pub longitude: Option<f64>,
pub baro_altitude: Option<f64>,
pub true_track: Option<f64>,
pub on_ground: bool,
}Expand description
Represents the single waypoint that is a basic part of flight trajectory.
Fields§
§time: u64Time which the given waypoint is associated with in seconds since epoch (Unix time).
latitude: Option<f64>WGS-84 latitude in decimal degrees.
longitude: Option<f64>WGS-84 longitude in decimal degrees.
baro_altitude: Option<f64>Barometric altitude in meters.
true_track: Option<f64>True track in decimal degrees clockwise from north (north=0°). Can be None.
on_ground: boolBoolean value which indicates if the position was retrieved from a surface position report.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Waypoint
impl<'de> Deserialize<'de> for Waypoint
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
Auto Trait Implementations§
impl Freeze for Waypoint
impl RefUnwindSafe for Waypoint
impl Send for Waypoint
impl Sync for Waypoint
impl Unpin for Waypoint
impl UnwindSafe for Waypoint
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