pub struct Truth {
pub samples: Vec<TruthSample>,
pub events: TruthEvents,
pub pad_height_m: f64,
pub site_elevation_m: f64,
pub temperature_offset_k: f64,
}Expand description
A flight’s truth.
Fields§
§samples: Vec<TruthSample>The samples, every TRUTH_STEP_S from launch and at each event, in time order.
events: TruthEventsThe events.
pad_height_m: f64The center of mass’s height above the ground at launch, m: where a logger in the rocket sat when it set its zero. A reading’s truth is a height above it.
site_elevation_m: f64The site’s elevation above mean sea level, m.
temperature_offset_k: f64The air’s temperature offset from the 1976 standard, K.
Implementations§
Source§impl Truth
impl Truth
Sourcepub fn at(&self, t: f64) -> Option<TruthSample>
pub fn at(&self, t: f64) -> Option<TruthSample>
The truth at t s since launch, read linearly between samples; before launch the rocket
stands on the pad, and after landing it lies still on its side. None for a truth with no
samples, or a t that isn’t a number.
Sourcepub fn pressure_pa(&self, t: f64) -> Result<f64, SyntheticError>
pub fn pressure_pa(&self, t: f64) -> Result<f64, SyntheticError>
The true static pressure at the center of mass t s since launch, Pa.
§Errors
As Ussa76::sample, for a height it can’t take; SyntheticError::Invalid where
Truth::at has no truth.
Sourcepub fn air(&self) -> Result<Ussa76, SyntheticError>
pub fn air(&self) -> Result<Ussa76, SyntheticError>
Sourcepub fn apogee_above_pad_m(&self) -> f64
pub fn apogee_above_pad_m(&self) -> f64
The apogee above where the logger sat on the pad, m.