Skip to main content

read

Function read 

Source
pub fn read(text: &str) -> Result<FlightLog, LogError>
Expand description

Reads a SillyGoose log from its text.

§Errors

LogError::NotThisFormat if the first line that isn’t blank, or the one after a CONFIG line, isn’t this layout’s header; LogError::Syntax for a header with an empty name or a name given twice, a row with more cells than the header names, a file whose rows hold too few of the cells its header names, or a value its unit’s conversion makes too large for an f64; LogError::NoData if no row has a time; LogError::Unit if altitudeM’s climb is more than 25% off the pressure’s (module docs).