diff options
author | Gary E. Miller <gem@rellim.com> | 2019-05-29 16:30:28 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2019-05-29 16:30:53 -0700 |
commit | a0cc3e99f1ac5b274d27ea2bd864250758e42194 (patch) | |
tree | 4a18dbec24827071b1d006f00216f9526e543a36 | |
parent | 0f3afe591738e8046ec9b9d53268a9c5a7b3a788 (diff) | |
download | gpsd-a0cc3e99f1ac5b274d27ea2bd864250758e42194.tar.gz |
ubxtool: Cleanup UBX-NAV-VELECEF and -VELNED decodes
-rwxr-xr-x | ubxtool | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'}, |