pub struct FlightLog {
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 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’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. 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.
notes: Vec<String>What the reader noticed and worked around, such as a sample count that differs from the one the file states.