Module dprs

Module dprs 

Source
Expand description

D-STAR Position Reporting System (DPRS).

DPRS is the APRS-equivalent for D-STAR. Position reports are carried as a special slow-data text block whose payload starts with $$CRC then APRS-style fields.

Reference: ircDDBGateway/Common/DPRSHandler.cpp:120-260 and ircDDBGateway/Common/APRSCollector.cpp:371-394 for the CRC algorithm (CRC-CCITT with reflected polynomial 0x8408, initial value 0xFFFF, final ~accumulator).

Structs§

DprsReport
A parsed DPRS position report.
Latitude
Latitude in decimal degrees, in -90.0..=90.0.
Longitude
Longitude in decimal degrees, in -180.0..=180.0.

Enums§

DprsError
DPRS sentence parser errors.

Functions§

compute_crc
Compute the DPRS CRC-CCITT over the given bytes.
encode_dprs
Encode a DprsReport into a DPRS sentence with a correct $$CRC<hex> checksum.
parse_dprs
Parse a DPRS sentence into a DprsReport.