pub fn build_aprs_mice(
source: &Ax25Address,
latitude: f64,
longitude: f64,
speed_knots: u16,
course_deg: u16,
symbol_table: char,
symbol_code: char,
comment: &str,
path: &[Ax25Address],
) -> Vec<u8> ⓘExpand description
Build a Mic-E encoded APRS position report for KISS transmission.
Mic-E is the most compact position format and the native format used by Kenwood HTs including the TH-D75. The latitude is encoded in the AX.25 destination address, and longitude + speed/course are in the info field.
Encoding per APRS101 Chapter 10:
- Destination address: 6 chars encoding latitude digits + N/S + lon offset + W/E flags
- Info field: type byte (
0x60for current Mic-E) + 3 lon bytes + 3 speed/course bytes- symbol code + symbol table + comment
Returns wire-ready bytes (FEND-delimited KISS frame).
§Parameters
source: The sender’s callsign and SSID.latitude: Decimal degrees, positive = North, negative = South.longitude: Decimal degrees, positive = East, negative = West.speed_knots: Speed in knots (0-799).course_deg: Course in degrees (0-360; 0 = unknown).symbol_table: APRS symbol table character (/for primary,\\for alternate).symbol_code: APRS symbol code character (e.g.,>for car).comment: Free-form comment text.