summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-03 15:18:44 -0700
committerGary E. Miller <gem@rellim.com>2018-10-03 15:21:57 -0700
commit80c43523994ebdbf1eddfbe30d64477123ef8905 (patch)
tree7d8d1ad0505f322333217fa7232a038c87d73df6 /ubxtool
parentb2ba84ee886003dbfc20f956e46bfed19f2a97ae (diff)
downloadgpsd-80c43523994ebdbf1eddfbe30d64477123ef8905.tar.gz
ubxtool: Add decode for UBX-NAV-EOE
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool11
1 files changed, 10 insertions, 1 deletions
diff --git a/ubxtool b/ubxtool
index 88e985fa..88fbc28e 100755
--- a/ubxtool
+++ b/ubxtool
@@ -643,6 +643,15 @@ class ubx(object):
u[4] / 100.0, u[5] / 100.0, u[6] / 100.0, u[7] / 100.0))
return s
+ def nav_eoe(self, buf):
+ "UBX-NAV-EOE decode, End Of Epoch"
+ m_len = len(buf)
+ if 4 > m_len:
+ return " Bad Length %s" % m_len
+
+ u = struct.unpack_from('<L', buf, 0)
+ return ' iTOW:%d ms' % u
+
def nav_posecef(self, buf):
"UBX-NAV-POSECEF decode"
m_len = len(buf)
@@ -1064,7 +1073,7 @@ class ubx(object):
0x3B: {'str': 'SVIN', 'dec': nav_svin, 'name': 'UBX-NAV-SVIN'},
0x3C: {'str': 'RELPOSNED', 'name': 'UBX-NAV-RELPOSNED'},
0x60: {'str': 'AOPSTATUS', 'name': 'UBX-NAV-AOPSTATUS'},
- 0x61: {'str': 'EOF', 'name': 'UBX-NAV-EOF'},
+ 0x61: {'str': 'EOE', 'dec': nav_eoe, 'name': 'UBX-NAV-EOE'},
}
def rxm_raw(self, buf):