parse_uncompressed_body

Function parse_uncompressed_body 

Source
pub fn parse_uncompressed_body(body: &[u8]) -> Result<AprsPosition, AprsError>
Expand description

Parse uncompressed APRS position body.

Format: lat(8) sym_table(1) lon(9) sym_code(1) [comment] = 19+ bytes.

ยงErrors

Returns AprsError::InvalidFormat if the body is shorter than 19 bytes or AprsError::InvalidCoordinates if the latitude or longitude fields are malformed.