Aprs.TelemetryFromComment (aprs v0.1.5)

View Source

Extract telemetry data from APRS comment fields.

Telemetry can be embedded in position comments using the format: |SS AAAAA BBBBB CCCCC DDDDD EEEEE FFFFF GGGGG HHHHH| where SS is the sequence number and A-H are telemetry values in base91.

Summary

Functions

Extract telemetry data from a comment field. Returns {telemetry_map, cleaned_comment} or {nil, original_comment}

Parse a base91 encoded telemetry value. Each character has a value from 0-90 (ASCII 33-123, excluding 124). Two characters give a value from 0-8280.

Functions

extract_telemetry_from_comment(comment)

@spec extract_telemetry_from_comment(String.t()) :: {map() | nil, String.t()}

Extract telemetry data from a comment field. Returns {telemetry_map, cleaned_comment} or {nil, original_comment}

parse_base91_telemetry(str)

@spec parse_base91_telemetry(String.t()) :: integer() | nil

Parse a base91 encoded telemetry value. Each character has a value from 0-90 (ASCII 33-123, excluding 124). Two characters give a value from 0-8280.