Skip to main content

Reason

Enum Reason 

Source
#[non_exhaustive]
pub enum Reason {
Show 28 variants TooShort, NoClimb, StartsOffThePad, EndsBeforeLanding, FasterThanFreeFall, ImplausibleSpeed, NoisySpeed, NoAccelerometer, Needs, BadRecord, SampledTooFast, NoHeightTrack, UnstatedSensor, SampledTooSlowly, StepTooCoarse, Transonic, ReceiverLag, ReceiverDropout, SlowerThanFreeCoast, ShortPad, ClockOutOfOrder, DisturbedTop, DisturbedPad, AxisUnstated, GravityUnstated, DirectionUnstated, OneCanopy, ShortLeg,
}
Expand description

The reason a reading was withheld.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

TooShort

The track has fewer than three samples.

§

NoClimb

The altitude never climbs twice LIFTOFF_ALLOWANCE_M and the step above where the log starts, or LIFTOFF_HEIGHT_M above the pad, or the pad’s allowance and a step if that is higher; or, for landing, falls too little past its step and noise for the descent’s rate to be measured.

§

StartsOffThePad

A track whose heights are above the pad only by a mapping’s or a column’s word starts more than PAD_ZERO_M from its zero: the log didn’t start on the pad, or its heights aren’t above the pad, such as an altitude above sea level a column mapping calls one above the ground.

§

EndsBeforeLanding

The log ends before the rocket is seen to land.

§

FasterThanFreeFall

The altitude reaches the ground sooner than a fall from rest at apogee in vacuum could.

§

ImplausibleSpeed

The top speed is above IMPLAUSIBLE_SPEED_M_S.

§

NoisySpeed

The climb’s speed swings negative by more than ASCENT_NOISE_FRACTION of its top.

§

NoAccelerometer

The log has no accelerometer.

§

Needs

The reading needs another, which was withheld.

§

BadRecord

The record breaks what every reader guarantees: a primary track as long as its clock, on finite times that increase, and channels as long as their clocks. Only a record built by hand can.

§

SampledTooFast

The samples come more often than MIN_INTERVAL_S, faster than the bounds were checked at.

§

NoHeightTrack

The log holds no altitude, pressure or GNSS track.

§

UnstatedSensor

The log’s only height is an altitude whose sensor it doesn’t state, such as a table’s Altitude column read by its header: a barometer’s bounds can’t be stated for it.

§

SampledTooSlowly

The samples come further apart than MAX_INTERVAL_S, or than the top speed’s fit needs.

§

StepTooCoarse

The track’s step is coarser than MAX_STEP_M or MAX_PRESSURE_STEP_PA.

§

Transonic

The top speed reaches TRANSONIC_SPEED_M_S, where the barometer’s port may read the transonic flow over the nose.

§

ReceiverLag

The only height is a GNSS receiver’s, whose filter lags a climb and overshoots its top.

§

ReceiverDropout

The only height is a GNSS receiver’s, whose fix drops out or lags at liftoff.

§

SlowerThanFreeCoast

The track loses no more than twice its noise and step in the COAST_CHECK_S before its top: its clock is in another unit, such as milliseconds read as seconds, its top isn’t a coast’s, or it isn’t a height.

§

ShortPad

The log’s first samples can’t rule out a rocket already more than LIFTOFF_ALLOWANCE_M up when it starts: it starts after liftoff, as a logger that records from launch writes its zero and then the climb, or holds too little of the pad to tell liftoff by. A track on the logger’s own zero, or one a mapping or a header calls above the ground, still gives its heights from that zero, with the zero’s possible error in their bounds, and withholds liftoff unless a sample sits within the allowance of it.

§

ClockOutOfOrder

The height track’s clock doesn’t increase, so no time can be read off it.

§

DisturbedTop

The track’s top isn’t a coast’s: it falls more than twice its noise and step below a peak in the last COAST_CHECK_S before its top, then climbs to it, or climbs into it faster than a coast can and falls from it faster than gravity pulls a body at rest there (SPIKE_CHECK_S). A transient after apogee does either, such as a charge’s that lasts longer than the median takes out and stands above the true top. Which is the apogee can’t be told, so the apogee, the top speed and landing are withheld; liftoff is not.

§

DisturbedPad

The track falls more than the climb’s rise below its start before the climb, then climbs from the fall without resting again: a disturbance on the pad, such as a pressure pulse at the barometer at ignition (#1101). The pad is read from before the fall, or from the logger’s zero when too little of it comes before. The top speed is withheld; so is liftoff when no sample before the fall is on the pad, its bound otherwise reaching back over the fall; and every reading is withheld when the track has no zero and too little pad before the fall.

§

AxisUnstated

The log’s accelerometers don’t say which of them lies along the rocket’s axis, such as a board’s three axes, a phone’s or a table’s column read by its header: the top acceleration and a burnout from the accelerometer need the axial one.

§

GravityUnstated

The axial accelerometer’s readings may or may not hold gravity’s 1 g, and nothing settles which: its family doesn’t say, and neither its pad (about 1 g or 0) nor its coast to apogee (about 0 or −1 g) reads either level, or what they say disagrees.

§

DirectionUnstated

Which way up the axial accelerometer reads, nose up or nose down, isn’t settled, or its trace shows no thrust. Of its three witnesses, each on the trace as written, none says or two disagree: the pad (about 1 g nose up, about −1 g nose down), the coast to apogee (−0.75 g or less nose up, 0.75 g or more nose down) and the thrust (its first span past LIFTOFF_ACCELERATION_M_S2 to hold there for BURN_LEAST_S, unless a span the other way comes first). Or, turned as they settle and gravity put back, the trace never passes LIFTOFF_ACCELERATION_M_S2 from liftoff’s earliest time to apogee.

§

OneCanopy

The descent shows no drogue’s leg. Walked back from landing, its rate at the ground’s density never passes the main’s mark, MAIN_TOLERANCE_SHARE times the rate near the ground or MAIN_TOLERANCE_M_S more if that is more, in the DESCENT_TAIL_S before the main’s leg, or the descent before that leg isn’t, on median, DROGUE_RATIO times that rate. The rocket came down under one canopy, or under a drogue no faster than the mark, which reads as one: the main’s descent is then the whole descent’s, from apogee to landing, and there is no drogue’s.

§

ShortLeg

A leg of the descent loses too little height, under LEG_LEAST_M or LEG_LEAST_SHARE of its top’s height, or lasts too little, for its rate to be read.

Implementations§

Source§

impl Reason

Source

pub const ALL: &'static [Self]

Every variant, in the order declared: what a program that maps them, as the command line does, checks itself against.

Trait Implementations§

Source§

impl Clone for Reason

Source§

fn clone(&self) -> Reason

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 Copy for Reason

Source§

impl Debug for Reason

Source§

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

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

impl<'de> Deserialize<'de> for Reason

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 Eq for Reason

Source§

impl Hash for Reason

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Reason

Source§

fn cmp(&self, other: &Reason) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Reason

Source§

fn eq(&self, other: &Reason) -> 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 PartialOrd for Reason

Source§

fn partial_cmp(&self, other: &Reason) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Serialize for Reason

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 Reason

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
§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
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 ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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.