Aprs. UtilityHelpers
(aprs v2.0.1)
View Source
Utility helpers for APRS parsing using binary pattern matching.
Summary
Functions
Returns the resolution in metres for a compressed APRS position.
Counts leading closing braces in a string.
Returns the resolution in metres for an NMEA position.
Parses an APRS timestamp relative to the supplied UTC clock.
Returns the latitude-derived resolution in metres for an APRS ambiguity level.
Parses an APRS timestamp using the current UTC time.
Functions
@spec compressed_position_resolution() :: float()
Returns the resolution in metres for a compressed APRS position.
@spec count_leading_braces(String.t()) :: non_neg_integer()
Counts leading closing braces in a string.
@spec nmea_position_resolution() :: float()
Returns the resolution in metres for an NMEA position.
@spec parse_timestamp(String.t(), DateTime.t()) :: integer() | nil
Parses an APRS timestamp relative to the supplied UTC clock.
Day-hour-minute timestamps which would otherwise be in the future are resolved against the previous month. Hour-minute-second timestamps similarly resolve against the previous day.
@spec position_resolution(non_neg_integer()) :: float()
Returns the latitude-derived resolution in metres for an APRS ambiguity level.
Parses an APRS timestamp using the current UTC time.