pub fn read(text: &str) -> Result<FlightLog, LogError>Expand description
Reads a Featherweight Blue Raven’s low-rate or high-rate CSV, as its phone app exports it.
§Errors
LogError::NotThisFormat if the first line isn’t the app’s header; LogError::Syntax for
a header column with no name, a row with more cells than the header, a row whose
Flight_Time_(s) is missing, isn’t a number or doesn’t come after the row above’s, a value
too large to convert to SI, or rows holding under a quarter of the cells the header names;
LogError::NoData if no row follows the header.