summaryrefslogtreecommitdiff
path: root/ubxtool
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2019-04-16 21:26:01 -0700
committerGary E. Miller <gem@rellim.com>2019-04-16 21:26:26 -0700
commitb2fc0cac03328288d3b84ff10da1bdbf9f5ad6d6 (patch)
tree7f9d0888dc605523b7511a182021e6703219df9a /ubxtool
parent531f6a57e92218da2287f0f2579c964c4eb2505a (diff)
downloadgpsd-b2fc0cac03328288d3b84ff10da1bdbf9f5ad6d6.tar.gz
ubxtool: Configure TIM-TM2 and TIM-TP to new style call.
Diffstat (limited to 'ubxtool')
-rwxr-xr-xubxtool14
1 files changed, 2 insertions, 12 deletions
diff --git a/ubxtool b/ubxtool
index d975bfe9..1188a6aa 100755
--- a/ubxtool
+++ b/ubxtool
@@ -3814,16 +3814,6 @@ class ubx(object):
m_data = bytearray(0)
gps_model.gps_send(0x0d, 0x04, m_data)
- def send_tim_tm2(self):
- """UBX-TIM-TM2, get time mark data"""
- m_data = bytearray(0)
- gps_model.gps_send(0x0d, 0x03, m_data)
-
- def send_tim_tp(self):
- """UBX-TIM-TP, get time pulse timedata"""
- m_data = bytearray(0)
- gps_model.gps_send(0x0d, 0x01, m_data)
-
able_commands = {
# en/dis able BeiDou
"BEIDOU": {"command": send_able_beidou,
@@ -3941,10 +3931,10 @@ class ubx(object):
"TIM-SVIN": {"command": send_tim_svin,
"help": "UBX-TIM-SVIN get survey in data"},
# UBX-TIM-TM2, get time mark data
- "TIM-TM2": {"command": send_tim_tm2,
+ "TIM-TM2": {"command": send_poll, "opt": [0x0d, 0x03],
"help": "UBX-TIM-TM2 get time mark data"},
# UBX-TIM-TP, get time pulse timedata
- "TIM-TP": {"command": send_tim_tp,
+ "TIM-TP": {"command": send_poll, "opt": [0x0d, 0x01],
"help": "UBX-TIM-TP get time pulse timedata"},
# UBX-CFG-RST warm boot
"WARMBOOT": {"command": send_cfg_rst,