diff options
author | Gary E. Miller <gem@rellim.com> | 2018-10-13 18:46:43 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2018-10-13 18:46:43 -0700 |
commit | 1d124f0446f38429df6692f81754a40d2a39e188 (patch) | |
tree | 407fd43b0480b86067c5a3aa5995f7525123876c | |
parent | 4538174cd4a0f0436ff26c2f8174a92a22b766e5 (diff) | |
download | gpsd-1d124f0446f38429df6692f81754a40d2a39e188.tar.gz |
ubxtool: Pick either UBX-NAV-SVINFO or UBS-NAV-SAT, disable other.
-rwxr-xr-x | ubxtool | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -1578,14 +1578,18 @@ class ubx(object): # UBX-NAV-SVINFO - deprecated in protocol 15, gone in 27 m_data = bytearray([0x01, 0x30, rate_s]) gps_model.gps_send(6, 1, m_data) + + # UBX-NAV-SAT turn it off, if we can + m_data = bytearray([0x01, 0x35, 0]) + gps_model.gps_send(6, 1, m_data) else: # use UBX-NAV-SAT for protocol 15 and up m_data = bytearray([0x01, 0x35, rate_s]) gps_model.gps_send(6, 1, m_data) - if 27 > opts['protocol']: - # UBX-NAV-SVINFO turn it off, if we can - m_data = bytearray([0x01, 0x30, 0]) - gps_model.gps_send(6, 1, m_data) + + # UBX-NAV-SVINFO turn it off, if we can + m_data = bytearray([0x01, 0x30, 0]) + gps_model.gps_send(6, 1, m_data) # UBX-NAV-EOE, end of epoch. # do not bother with EOE until gpsd works with it. |