From 533efdc234ac74b9670991e7c5fb6becd5588ff0 Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Wed, 29 May 2019 13:29:31 -0700 Subject: ubxtool: Cleanup UBX-CFG-TIMELS decode. --- ubxtool | 39 +++++++++++++++++++++++++++++++++++---- 1 file changed, 35 insertions(+), 4 deletions(-) (limited to 'ubxtool') diff --git a/ubxtool b/ubxtool index 7706ec4d..ea48f5a9 100755 --- a/ubxtool +++ b/ubxtool @@ -3572,8 +3572,33 @@ class ubx(object): (flag_s(u[4], self.nav_time_valid))) return s + nav_timels_src = { + 0: "Default", + 1: "GPS/GLONASS derived", + 2: "GPS", + 3: "SBAS", + 4: "BeiDou", + 5: "Galileo", + 6: "Aided data", + 7: "Configured", + } + + nav_timels_src1 = { + 0: "None", + 2: "GPS", + 3: "SBAS", + 4: "BeiDou", + 5: "Galileo", + 6: "GLONASS", + } + + nav_timels_valid = { + 1: "validCurrLs", + 2: "validTimeToLsEvent", + } + def nav_timels(self, buf): - """UBX-NAV-TIMELS decode""" + """UBX-NAV-TIMELS decode, Leap second event information""" m_len = len(buf) if 0 == m_len: return " Poll request" @@ -3581,11 +3606,17 @@ class ubx(object): if 24 > m_len: return " Bad Length %s" % m_len - u = struct.unpack_from('