summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2018-10-03 17:12:47 -0700
committerGary E. Miller <gem@rellim.com>2018-10-03 17:12:47 -0700
commit0eb12bfa51dcb4cba15809f6b205cd46dfd0353d (patch)
tree602d4b74fc08c3f3c240e058992f8953b1efb0f9 /ubxtool
parentabcc499e5ca10d0f2bb043a5bf2d679b26be6992 (diff)
downloadgpsd-0eb12bfa51dcb4cba15809f6b205cd46dfd0353d.tar.gz
ubxtool: -d BINARY did not turn off UBX-NAV-SBAS and SVINFO.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool11
1 files changed, 9 insertions, 2 deletions
diff --git a/ubxtool b/ubxtool
index 2c4effed..73da9893 100755
--- a/ubxtool
+++ b/ubxtool
@@ -1554,12 +1554,19 @@ class ubx(object):
m_data = bytearray([0x01, 0x20, rate])
gps_model.gps_send(6, 1, m_data)
+ # no point doing UBX-NAV-SBAS and UBX-NAV-SVINFO
+ # faster than every 10 seconds
+ if rate:
+ rate_s = 10
+ else:
+ rate_s = 0
+
# UBX-NAV-SBAS
- m_data = bytearray([0x01, 0x32, 10])
+ m_data = bytearray([0x01, 0x32, rate_s])
gps_model.gps_send(6, 1, m_data)
# UBX-NAV-SVINFO
- m_data = bytearray([0x01, 0x30, 10])
+ m_data = bytearray([0x01, 0x30, rate_s])
gps_model.gps_send(6, 1, m_data)
# UBX-NAV-EOE, end of epoch.