pub fn parse_compressed_body(body: &[u8]) -> Result<AprsPosition, AprsError>Expand description
Parse compressed APRS position body (APRS101.PDF Chapter 9).
Format: sym_table(1) YYYY(4) XXXX(4) sym_code(1) cs(1) s(1) t(1) = 13 bytes.
YYYY and XXXX are base-91 encoded (each byte = ASCII 33-124, value = byte - 33).
Latitude: 90 - (YYYY / 380926.0) degrees
Longitude: -180 + (XXXX / 190463.0) degrees
ยงErrors
Returns AprsError::InvalidFormat if the body is shorter than 13
bytes or AprsError::InvalidCoordinates if the base-91 lat/lon
fields contain bytes outside the 33..=124 range.