parse_mice_position

Function parse_mice_position 

Source
pub fn parse_mice_position(
    destination: &str,
    info: &[u8],
) -> Result<AprsPosition, AprsError>
Expand description

Parse a Mic-E encoded APRS position (APRS101.PDF Chapter 10).

Mic-E is a compact encoding used by Kenwood HTs (including the TH-D75) that splits the position across two fields:

  • Latitude is encoded in the 6-character AX.25 destination address
  • Longitude and speed/course are in the info field body

Data type identifiers: ` (0x60, current Mic-E) or ' (0x27, old Mic-E). The TH-D75 uses current Mic-E (`).

§Parameters

  • destination: The AX.25 destination callsign (e.g., “T4SP0R”)
  • info: The full AX.25 information field (including the type byte)

§Errors

Returns AprsError if the Mic-E encoding is invalid.