Skip to main content

Readings

Struct Readings 

Source
pub struct Readings {
Show 18 fields pub source: Option<Source>, pub sample_interval_s: Option<f64>, pub step_m: Option<f64>, pub median_window_s: Option<f64>, pub peak_bound_m: Option<f64>, pub pad_altitude_m: Option<f64>, pub ends_on_the_climb: bool, pub liftoff: Reading<Liftoff>, pub apogee: Reading<Apogee>, pub max_speed: Reading<MaxSpeed>, pub max_acceleration: Reading<MaxAcceleration>, pub burnout: Reading<Burnout>, pub landing: Reading<Landing>, pub flight_time: Reading<FlightTime>, pub drogue_descent: Reading<Descent>, pub main_descent: Reading<Descent>, pub accelerometer: Option<Accelerometer>, pub day_air: Option<DayAir>,
}
Expand description

What was read from a flight log.

Fields§

§source: Option<Source>

The track the readings came from; None if the log has none, or is withheld whole as Reason::BadRecord.

§sample_interval_s: Option<f64>

The median interval between the track’s samples, s; None for a log too short to read.

§step_m: Option<f64>

The track’s step, m: the reader’s for the logger’s own altitude, else the smallest gap between two of its values, a pressure’s at the pad.

§median_window_s: Option<f64>

The running median’s span, s, whole samples of the interval: MEDIAN_WINDOW_S rounded.

§peak_bound_m: Option<f64>

How far below its true peak the running median can read a peak bent by gravity alone, m (peak_bound_m).

§pad_altitude_m: Option<f64>

The pad, m on the track’s own scale: the median of the samples surely before liftoff, or, in a log that starts after liftoff, the logger’s zero; None when every reading is withheld before it is found. After a fall to a second level, the last rest’s (#1158): the start’s level may have been the pad, and the gap enters the bounds, not this value.

§ends_on_the_climb: bool

Whether the track’s top lies at the log’s end, within half the filter’s window, so the log may have stopped before the rocket did: the apogee and the top speed are then floors, and the smoother’s apogee too. It holds where the apogee is withheld as well.

§liftoff: Reading<Liftoff>

Liftoff.

§apogee: Reading<Apogee>

The highest point.

§max_speed: Reading<MaxSpeed>

The top vertical speed from liftoff to apogee.

§max_acceleration: Reading<MaxAcceleration>

The top acceleration, from the axial accelerometer.

§burnout: Reading<Burnout>

Burnout, from the axial accelerometer or the speed’s peak.

§landing: Reading<Landing>

Landing, and the descent before it.

§flight_time: Reading<FlightTime>

The flight time, liftoff to landing.

§drogue_descent: Reading<Descent>

The descent under the drogue: from apogee to the main’s opening.

§main_descent: Reading<Descent>

The descent under the main, the canopy the rocket landed under: from the main’s opening, or from apogee when the descent shows one canopy, to landing.

§accelerometer: Option<Accelerometer>

The axial accelerometer the top acceleration and burnout came from; None when the log has none, or none settled.

§day_air: Option<DayAir>

The day’s air at the pad, from the log’s own temperature against the standard atmosphere’s, and whether the bounds’ allowance for it, AIR_TEMPERATURE_SPREAD_K, covers it; None where the log has no temperature, no height above sea level for the pad, a temperature outside −100 to 100 °C (LOGGED_AIR_RANGE_K), a column of one value at a unit’s zero (UNIT_ZEROS_K: 0 K, 0 °C or 0 °F), or the pad isn’t found. Left out of a record written before the field was.

Trait Implementations§

Source§

impl Clone for Readings

Source§

fn clone(&self) -> Readings

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Readings

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Readings

Source§

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 PartialEq for Readings

Source§

fn eq(&self, other: &Readings) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Readings

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Readings

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.