Skip to main content

read

Function read 

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

Reads a log in this layout.

§Errors

  • LogError::NotThisFormat if the first line that isn’t blank isn’t the export’s header.
  • LogError::NoData without a row.
  • LogError::Syntax for a row not five cells wide, or whose MET isn’t a number greater than the row before’s, or a value too large to convert to SI.
  • LogError::Unit where the file’s evidence settles no unit for Vel or pAlt (module docs): the primary track would have no unit.