diff --git a/aprslib/parsing/__init__.py b/aprslib/parsing/__init__.py index d40c7f6..804a954 100644 --- a/aprslib/parsing/__init__.py +++ b/aprslib/parsing/__init__.py @@ -44,6 +44,25 @@ from aprslib.parsing.telemetry import * from aprslib.parsing.thirdparty import * from aprslib.parsing.weather import * +unsupported_formats = { + '#':'raw weather report', + '$':'raw gps', + '%':'agrelo', + '&':'reserved', + '(':'unused', + ')':'item report', + '*':'complete weather report', + '+':'reserved', + '-':'unused', + '.':'reserved', + '<':'station capabilities', + '?':'general query format', + 'T':'telemetry report', + '[':'maidenhead locator beacon', + '\\':'unused', + ']':'unused', + '^':'unused', +} def _unicode_packet(packet): # attempt utf-8 @@ -139,45 +158,7 @@ def parse(packet): def _try_toparse_body(packet_type, body, parsed): result = {} - unsupported_formats = { - '#':'raw weather report', - '$':'raw gps', - '%':'agrelo', - '&':'reserved', - '(':'unused', - ')':'item report', - '*':'complete weather report', - '+':'reserved', - '-':'unused', - '.':'reserved', - '<':'station capabilities', - '?':'general query format', - 'T':'telemetry report', - '[':'maidenhead locator beacon', - '\\':'unused', - ']':'unused', - '^':'unused', - } - # NOT SUPPORTED FORMATS - # - # # - raw weather report - # $ - raw gps - # % - agrelo - # & - reserved - # ( - unused - # ) - item report - # * - complete weather report - # + - reserved - # - - unused - # . - reserved - # < - station capabilities - # ? - general query format - # T - telemetry report - # [ - maidenhead locator beacon - # \ - unused - # ] - unused - # ^ - unused - if packet_type in '#$%)*