Aprs.TelemetryFromComment (aprs v2.0.1)

View Source

Extracts base91 telemetry data from APRS comment fields.

A telemetry block contains a sequence pair, one to five analog pairs, and, when all seven pairs are present, one digital pair.

The values are base-91 counts, so vals holds integers in 0..8280. That is not the same shape as a T# telemetry packet, whose analog values are decimal text and are reported as floats by Aprs.Telemetry.

Summary

Functions

Extracts the first pipe-delimited telemetry block from a comment.

Decodes a two-byte base91 telemetry value.

Functions

extract_telemetry_from_comment(comment)

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

Extracts the first pipe-delimited telemetry block from a comment.

Returns {telemetry, cleaned_comment} or {nil, original_comment}.

parse_base91_telemetry(arg1)

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

Decodes a two-byte base91 telemetry value.

Both bytes must be in the inclusive ASCII range 33 through 123.