pub struct FlightLog {Show 14 fields
pub format: LogFormat,
pub logger: String,
pub serial_number: Option<String>,
pub firmware: Option<String>,
pub flight_number: Option<u32>,
pub stated: Stated,
pub time_s: Vec<f64>,
pub altitude_m: Vec<f64>,
pub vertical_speed_m_s: Option<Vec<f64>>,
pub temperature_k: Option<Vec<f64>>,
pub battery_v: Option<Vec<f64>>,
pub channels: Vec<Channel>,
pub events: Vec<Event>,
pub notes: Vec<String>,
}Expand description
A flight log, read.
Fields§
§format: LogFormatThe file format it was read from.
logger: StringThe logger, as the file names it, such as PerfectFlite Pnut.
serial_number: Option<String>The logger’s serial number, as the file states it.
firmware: Option<String>The logger’s firmware version, as the file states it.
flight_number: Option<u32>The flight’s number in the logger’s memory, as the file states it.
stated: StatedWhat the file states about the flight: the logger’s own figures, kept beside HPR Sim’s readings and never in place of them.
time_s: Vec<f64>Each sample’s time, s, from the logger’s own zero. Strictly increasing.
altitude_m: Vec<f64>The barometric altitude, m, as the logger converts its pressure, above the logger’s own zero: for a PerfectFlite, its reading on the pad.
vertical_speed_m_s: Option<Vec<f64>>The vertical speed, m/s, up positive, as the logger computes it; None if the file has
no such column. A barometric logger works it out from its own altitude.
temperature_k: Option<Vec<f64>>The logger’s temperature sensor, K; None if the file has no such column, or if its unit
can’t be told (the column is then kept as written in channels). It sits in the
electronics bay, so it reads the bay, not the air.
battery_v: Option<Vec<f64>>The logger’s battery voltage, V; None if the file has no such column.
channels: Vec<Channel>Every data column the file holds, in the file’s order, each on its own clock and in SI: the primary track’s columns above included, so that the record keeps every sample the logger wrote. A clock column is the time of its channels, not a channel itself. Empty in a record written before the field was.
events: Vec<Event>What the logger says happened and when, such as an AltOS flight computer’s change of state: in the file’s order, or in time order where the file states them apart from its rows, as an Eggtimer’s summary does.
notes: Vec<String>What the reader noticed and worked around, such as a sample count that differs from the one the file states.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FlightLog
impl<'de> Deserialize<'de> for FlightLog
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 FlightLog
impl JsonSchema for FlightLog
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