IsoTpParallelQuery: set separation time (#25978)

* Specify separation time in openpilot

* comment

* Update selfdrive/car/isotp_parallel_query.py

* Update selfdrive/car/isotp_parallel_query.py
pull/25975/head
Shane Smiskol 3 years ago committed by GitHub
parent ef24c0b2ce
commit 8b41d817e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      panda
  2. 5
      selfdrive/car/isotp_parallel_query.py

@ -1 +1 @@
Subproject commit 9bcd9b9a24149b241992f26caf9920d427ee609d Subproject commit 3334dc21f5c55007c5a754dfd8ee5d642be3e2bb

@ -68,7 +68,10 @@ class IsoTpParallelQuery:
self.bus, sub_addr=sub_addr, debug=self.debug) self.bus, sub_addr=sub_addr, debug=self.debug)
max_len = 8 if sub_addr is None else 7 max_len = 8 if sub_addr is None else 7
return IsoTpMessage(can_client, timeout=0, max_len=max_len, debug=self.debug) # uses iso-tp frame separation time of 10 ms
# TODO: use single_frame_mode so ECUs can send as fast as they want,
# as well as reduces chances we process messages from previous queries
return IsoTpMessage(can_client, timeout=0, separation_time=0.01, debug=self.debug, max_len=max_len)
def get_data(self, timeout, total_timeout=60.): def get_data(self, timeout, total_timeout=60.):
self._drain_rx() self._drain_rx()

Loading…
Cancel
Save