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
This commit is contained in:
Shane Smiskol
2022-10-05 17:06:52 -07:00
committed by GitHub
parent ef24c0b2ce
commit 8b41d817e4
2 changed files with 5 additions and 2 deletions
+1 -1
Submodule panda updated: 9bcd9b9a24...3334dc21f5
+4 -1
View File
@@ -68,7 +68,10 @@ class IsoTpParallelQuery:
self.bus, sub_addr=sub_addr, debug=self.debug)
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.):
self._drain_rx()