From 124d03638b0efd3f7354254dae39be5c1222b46d Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 29 May 2019 13:01:08 -0700 Subject: ubxtool: Cleanup UBX-NAV-SBAS decode. Sadly SBAS messages are defined by non-free standards and thus badly defined. --- ubxtool | 54 +++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 15 deletions(-) (limited to 'ubxtool') diff --git a/ubxtool b/ubxtool index 343e1bb6..610cdc02 100755 --- a/ubxtool +++ b/ubxtool @@ -3310,6 +3310,29 @@ class ubx(object): return s + nav_sbas_mode = { + 0: "Disabled", + 1: "Enabled Integrity", + 2: "Enabled Testmode", + } + + # sometimes U1 or I1 + nav_sbas_sys = { + 0: "WAAS", + 1: "EGNOS", + 2: "MSAS", + 3: "GAGAN", + 4: "SDCM", # per ICAO Annex 10, v1, Table B-27 + 16: "GPS", + } + + nav_sbas_service = { + 1: "Ranging", + 2: "Corrections", + 4: "Integrity", + 8: "Testmode", + } + def nav_sbas(self, buf): """UBX-NAV-SBAS decode""" m_len = len(buf) @@ -3320,25 +3343,26 @@ class ubx(object): return " Bad Length %s" % m_len u = struct.unpack_from('