summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-05-29 16:30:28 -0700
committerGary E. Miller <gem@rellim.com>2019-05-29 16:30:53 -0700
commita0cc3e99f1ac5b274d27ea2bd864250758e42194 (patch)
tree4a18dbec24827071b1d006f00216f9526e543a36 /ubxtool
parent0f3afe591738e8046ec9b9d53268a9c5a7b3a788 (diff)
downloadgpsd-a0cc3e99f1ac5b274d27ea2bd864250758e42194.tar.gz
ubxtool: Cleanup UBX-NAV-VELECEF and -VELNED decodes
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool6
1 files changed, 3 insertions, 3 deletions
diff --git a/ubxtool b/ubxtool
index 4d130482..b0a56f15 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3712,7 +3712,7 @@ class ubx(object):
return " Bad Length %s" % m_len
u = struct.unpack_from('<LlllL', buf, 0)
- return ' iTOW:%d ecef: VX %.2f VY %.2f VZ %.2f vAcc:%.2f' % u
+ return ' iTOW %d ecef: VX %d VY %d VZ %d vAcc:%u' % u
def nav_velned(self, buf):
"""UBX-NAV-VELNED decode"""
@@ -3724,8 +3724,8 @@ class ubx(object):
return " Bad Length %s" % m_len
u = struct.unpack_from('<LlllLLlLL', buf, 0)
- return (' iTOW %d vel: N %d E %d D %d speed %d\n'
- ' gspeed %d heading %f sAcc %d cAcc %d' % u)
+ return (' iTOW %u vel: N %d E %d D %d speed %u\n'
+ ' gspeed %u heading %d sAcc %u cAcc %u' % u)
nav_ids = {1: {'str': 'POSECEF', 'dec': nav_posecef,
'name': 'UBX-NAV-POSECEF'},