summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-05-29 16:35:01 -0700
committerGary E. Miller <gem@rellim.com>2019-05-29 16:35:01 -0700
commit323286cd20cef3b13eef0e826c2559685454f046 (patch)
treea0ca74e64b96ff9d6edbd41143f868eee1a609e4 /ubxtool
parenta0cc3e99f1ac5b274d27ea2bd864250758e42194 (diff)
downloadgpsd-323286cd20cef3b13eef0e826c2559685454f046.tar.gz
ubxtool: Cleanup UBX-NAV-DOP and -EOE.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool8
1 files changed, 3 insertions, 5 deletions
diff --git a/ubxtool b/ubxtool
index b0a56f15..c8ab906a 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3141,10 +3141,8 @@ class ubx(object):
return " Bad Length %s" % m_len
u = struct.unpack_from('<Lhhhhhhh', buf, 0)
- s = (' iTOW:%d ms, gDOP:%.2f pDOP:%.2f tDOP:%.2f vDOP:%.2f\n'
- ' hDOP:%.2f nDOP:%.2f eDOP:%.2f' %
- (u[0], u[1] / 100.0, u[2] / 100.0, u[3] / 100.0,
- u[4] / 100.0, u[5] / 100.0, u[6] / 100.0, u[7] / 100.0))
+ s = (' iTOW %u gDOP %u pDOP %u tDOP %u vDOP %u\n'
+ ' hDOP %u nDOP %u eDOP %u' % u)
return s
def nav_eoe(self, buf):
@@ -3154,7 +3152,7 @@ class ubx(object):
return " Bad Length %s" % m_len
u = struct.unpack_from('<L', buf, 0)
- return ' iTOW:%d ms' % u
+ return ' iTOW %d' % u
def nav_geofence(self, buf):
"""UBX-NAV-GEOFENCE decode"""