pub fn read_pfa(text: &str) -> Result<FlightLog, LogError>Expand description
Reads a .pfa flight log, as PerfectFlite’s DataCap saves an Alt15K/WD’s flight, from its
text: one altitude a line after a **!!Data: line, each 0.1 s after the one before, in feet
above the pad. The layout and where its units come from are in the module’s
documentation.
§Errors
LogError::NotThisFormat if the first line doesn’t name PerfectFlite;
LogError::Syntax for a sample line that isn’t a whole number, an empty line among the
samples, a **!! line other than **!!Data:, or a Ground:, Apogee: or NumSamps: line
stated twice; LogError::NoData if there is no **!!Data: line or no sample after it.