#[non_exhaustive]pub struct Channel {
pub column: String,
pub quantity: Quantity,
pub time_s: Vec<f64>,
pub values: Vec<f64>,
}Expand description
One column of a flight log, on its own clock.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.column: StringThe column’s name as the file writes it, such as Axial Accel (Gs): it says which axis
or sensor a quantity came from where the file says so.
quantity: QuantityWhat the column measures, which sets its unit.
time_s: Vec<f64>Each sample’s time, s, from the log’s zero, the same zero as FlightLog::time_s; NaN
where the file gives the sample no time, as a KML path without times does (the GPS logs’
decision, ADR-254). In the file’s order, so a time may go back where the
logger’s clock did.
values: Vec<f64>Each sample’s value in the quantity’s unit (Quantity::unit); NaN where the file left
the cell empty or wrote something that isn’t a number.
Implementations§
Source§impl Channel
impl Channel
Sourcepub fn new(
column: impl Into<String>,
quantity: Quantity,
time_s: Vec<f64>,
values: Vec<f64>,
) -> Self
pub fn new( column: impl Into<String>, quantity: Quantity, time_s: Vec<f64>, values: Vec<f64>, ) -> Self
A channel from its column’s name, its quantity, and each sample’s time and value, in SI.
Readers build channels as they read a file; this is for records made another way, such as
a synthetic flight’s log (hpr_forensics::synthetic).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Channel
impl<'de> Deserialize<'de> for Channel
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 Channel
impl JsonSchema for Channel
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