pub struct AtmosphereV1 {
pub altitude_m: Option<f64>,
pub temperature_k: Option<f64>,
pub pressure_pa: Option<f64>,
pub pressure_reference: Option<PressureReferenceV1>,
pub relative_humidity: Option<f64>,
pub latitude_rad: Option<f64>,
}Expand description
Atmospheric station conditions.
Every field is Option behind a presence-preserving deserializer, so omission is stated
directly on the wire and a SUPPLIED value is always authoritative — solve-json builds
through crate::cli_api::TrajectorySolver::new_with_resolved_station_atmosphere and
never re-interprets it (MBA-1397). In particular temperature_k of exactly 288.15 K or
pressure_pa of exactly 101325 Pa mean those readings, not “omitted”.
The C ABI (crate::ffi, behind the ffi feature) deliberately does NOT behave this way:
FFIAtmosphericConditions is a repr(C) struct of plain doubles with no
presence channel, so it keeps the legacy default-sentinel heuristic in which those same
values at a nonzero altitude mean “resolve the ICAO standard here”. The two surfaces
therefore disagree on identical nominal inputs (~0.29 MOA on a 300 m zero at 2000 m); see
that module’s documentation for the full account.
Fields§
§altitude_m: Option<f64>§temperature_k: Option<f64>Authoritative station temperature, or None to resolve ICAO standard temperature at
altitude_m.
pressure_pa: Option<f64>Authoritative station pressure, or None to resolve ICAO standard pressure at
altitude_m. Interpreted per pressure_reference (MBA-1397): absolute (the
default) means this value already IS station pressure; qnh means it is a
sea-level-corrected altimeter setting that must be reduced to station pressure at
altitude_m before use.
pressure_reference: Option<PressureReferenceV1>Whether pressure_pa is absolute station pressure or a sea-level-corrected altimeter
setting (QNH, MBA-1397). None (the omitted-field default, and every request from
before this field existed) means PressureReferenceV1::Absolute — byte-identical to
pre-MBA-1397 behavior. Has no effect when pressure_pa is omitted: an omitted pressure
resolves to the ICAO standard station pressure either way.
relative_humidity: Option<f64>§latitude_rad: Option<f64>Trait Implementations§
Source§impl Clone for AtmosphereV1
impl Clone for AtmosphereV1
Source§impl Debug for AtmosphereV1
impl Debug for AtmosphereV1
Source§impl Default for AtmosphereV1
impl Default for AtmosphereV1
Source§impl<'de> Deserialize<'de> for AtmosphereV1
impl<'de> Deserialize<'de> for AtmosphereV1
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>,
Source§impl PartialEq for AtmosphereV1
impl PartialEq for AtmosphereV1
Source§impl Serialize for AtmosphereV1
impl Serialize for AtmosphereV1
impl StructuralPartialEq for AtmosphereV1
Auto Trait Implementations§
impl Freeze for AtmosphereV1
impl RefUnwindSafe for AtmosphereV1
impl Send for AtmosphereV1
impl Sync for AtmosphereV1
impl Unpin for AtmosphereV1
impl UnsafeUnpin for AtmosphereV1
impl UnwindSafe for AtmosphereV1
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.