summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-05-29 16:27:09 -0700
committerGary E. Miller <gem@rellim.com>2019-05-29 16:27:09 -0700
commit0f3afe591738e8046ec9b9d53268a9c5a7b3a788 (patch)
treebce89a93a5f9b5a20c30dc0cc7824a111476a09a /ubxtool
parent5b24ae420b77089fcdba01b4d7745b7871ad81db (diff)
downloadgpsd-0f3afe591738e8046ec9b9d53268a9c5a7b3a788.tar.gz
ubxtool: Cleaup UBX-NAV-POSECEF and -HPPOSECEF decodes.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool7
1 files changed, 4 insertions, 3 deletions
diff --git a/ubxtool b/ubxtool
index 02ae4903..4d130482 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3185,10 +3185,10 @@ class ubx(object):
return " Bad Length %s" % m_len
u = struct.unpack_from('<BBBBLlllbbbbL', buf, 0)
- return (' version %u reserved1 %u %u %u iTOW:%d\n'
+ return (' version %u reserved1 %u %u %u iTOW %u\n'
' ecef: X %d Y %d Z %d\n'
' ecefHP: X %d Y %d Z %d\n'
- ' reserved2 %u pAcc:%d' % u)
+ ' reserved2 %u pAcc %u' % u)
def nav_hpposllh(self, buf):
"""UBX-NAV-HPPOSLLH decode"""
@@ -3215,7 +3215,7 @@ class ubx(object):
return " Bad Length %s" % m_len
u = struct.unpack_from('<LlllL', buf, 0)
- return ' iTOW:%u ms, ecefX:%d cm Y:%d cm Z:%d cm\n pAcc:%d cm' % u
+ return ' iTOW %u ecefX %d Y %d Z %d pAcc %u' % u
def nav_posllh(self, buf):
"""UBX-NAV-POSLLH decode"""
@@ -3262,6 +3262,7 @@ class ubx(object):
5: "Inactive",
}
+ # protver 27+
nav_pvt_carr = {
0: "None",
1: "Floating",