Aprs.CompressedPositionHelpers (aprs v0.1.5)
View SourceCompressed position helpers for APRS packets.
Summary
Functions
Calculate position resolution (ambiguity) from the compression type byte.
Parse the compression type byte to extract all encoded information.
Functions
Calculate position resolution (ambiguity) from the compression type byte.
In compressed format, the compression type byte encodes:
- Bits 0-1: GPS fix type/NMEA source
- Bits 2-4: Position resolution
- Bit 5: Old/Current GPS data
Position resolution values:
- 0: No resolution specified (full precision)
- 1: 0.1' (about 600 feet)
- 2: 1' (about 0.01 degree)
- 3: 10' (about 0.1 degree)
- 4: 1 degree
Parse the compression type byte to extract all encoded information.
Returns a map with:
- gps_fix_type: NMEA source/GPS fix type (0-3)
- position_resolution: Position ambiguity level (0-4)
- old_gps_data: Whether this is old GPS data