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: usizeSteps where the pass back couldn’t solve and kept the forward filter’s estimate.
assumed_pad: boolWhether 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: boolWhether 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: boolWhether 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
impl Health
Sourcepub fn card(&self) -> String
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<'de> Deserialize<'de> for Health
impl<'de> Deserialize<'de> for Health
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 JsonSchema for Health
impl JsonSchema for Health
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more