From 2eb907ff6b1d5b18717f18b35e625f7fb70b39dd Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Mon, 27 May 2019 18:44:16 -0700 Subject: ubxtool: Add poll and decode UBX-CFG-RATE --- ubxtool | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/ubxtool b/ubxtool index 737d44de..e9a33ffb 100755 --- a/ubxtool +++ b/ubxtool @@ -2119,6 +2119,29 @@ class ubx(object): return '\n'.join(s) + cfg_rate_system = { + 0: "UTC", + 1: "GPS", + 2: "GLONASS", + 3: "BeiDou", + 4: "Galileo", + } + + def cfg_rate(self, buf): + """UBX-CFG-RATE decode, Navigation/Measurement Rate Settings""" + + m_len = len(buf) + if 0 == m_len: + return " Poll request" + + if 6 > m_len: + return "Bad Length %s" % m_len + + u = struct.unpack_from('