diff --git a/aprslib/parsing/__init__.py b/aprslib/parsing/__init__.py index ec592a7..e8e37c4 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,27 +158,8 @@ def parse(packet): def _try_toparse_body(packet_type, body, parsed): result = {} - # 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 '#$%)*B:%saaa" % packet_type try: