Skip to main content

Health

Struct Health 

Source
pub struct Health {
    pub sensors: Vec<SensorHealth>,
    pub deweighted: Vec<Span>,
    pub rejected: Vec<Rejected>,
    pub gnss_trusted_s: Option<f64>,
    pub baro_minus_inertial_at_apogee_m: Option<f64>,
    pub unsmoothed_steps: usize,
    pub assumed_pad: bool,
    pub accelerometer_set_aside: bool,
    pub apogee_less_reading_m: Option<f64>,
    pub apogee_past_reading_bound: bool,
}
Expand description

A log’s health card: how each sensor fared against the others (the smoothing note §7, after PX4’s and ArduPilot’s estimator status).

Fields§

§sensors: Vec<SensorHealth>

Each sensor the log holds.

§deweighted: Vec<Span>

The spans the barometer was de-weighted over.

§rejected: Vec<Rejected>

Every sample rejected, in time order.

§gnss_trusted_s: Option<f64>

When the GNSS receiver was first trusted, s on the log’s clock; None if never, or if the log has none.

§baro_minus_inertial_at_apogee_m: Option<f64>

The barometer’s height less the accelerometer’s alone, integrated from liftoff with its pad’s reading taken out, at the smoothed apogee, m; None with no accelerometer.

§unsmoothed_steps: usize

Steps where the pass back couldn’t solve and kept the forward filter’s estimate.

§assumed_pad: bool

Whether the log holds fewer than PAD_MIN_SAMPLES barometer samples on the pad, as one written from launch detection does. The pad is then assumed: the height stands on the readings’ zero (Readings::pad_altitude_m), the barometer’s noise comes from the flight’s own scatter, and no sample is held still.

§accelerometer_set_aside: bool

Whether the log’s accelerometer had too little of the pad to take its level from, and was set aside: it isn’t in Health::sensors.

§apogee_less_reading_m: Option<f64>

The smoothed apogee’s height less the reading’s, m; None where the apogee isn’t read.

§apogee_past_reading_bound: bool

Whether that gap passes the reading’s bound: the reading’s error stays within its bound, so the track has gone wrong around its top, as it can where a long transonic span leaves it to the motion model. The bound holds a floor’s truth only from below, and a smoothed apogee above a floor doesn’t count.

Implementations§

Source§

impl Health

Source

pub fn card(&self) -> String

The card as text: a line each if the pad was assumed or the accelerometer set aside, a line for each sensor, then the barometer’s de-weighted spans, when the GNSS receiver was first trusted, the barometer’s height less the accelerometer’s at apogee, and the pass back. Times are on the log’s clock; numbers are to three significant figures.

Trait Implementations§

Source§

impl Clone for Health

Source§

fn clone(&self) -> Health

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 Health

Source§

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

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

impl<'de> Deserialize<'de> for Health

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 JsonSchema for Health

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for Health

Source§

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

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 Health

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.