From b4802c4b92bee21192bedddeeacd4fae5a07998f Mon Sep 17 00:00:00 2001 From: "Gary E. Miller" Date: Tue, 28 May 2019 12:12:18 -0700 Subject: ubxtool: Add decode for UBX-CFG-DGNSS. COuld not get poll to work. --- ubxtool | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'ubxtool') diff --git a/ubxtool b/ubxtool index ee320794..75d734c4 100755 --- a/ubxtool +++ b/ubxtool @@ -1886,6 +1886,25 @@ class ubx(object): return s + cfg_dgnss_mode = { + 2: "RTK Float", + 3: "RTK Fixed", + } + + def cfg_dgnss(self, buf): + """UBX-CFG-DGNSS decode, DGNSS configuration""" + m_len = len(buf) + if 0 == m_len: + return "Poll request" + + if 4 > m_len: + return "Bad Length %d" % m_len + + u = struct.unpack_from('