Mazda: use bus 0 to fingerprint (#31261)

* for testing

* switch OBD port to logging

* revert

* cmt

* cmt

* remove OBD query

* Update selfdrive/car/mazda/values.py
old-commit-hash: f0b6f48948
pull/32199/head
Shane Smiskol 2 years ago committed by GitHub
parent 05204fbde3
commit 55f88260d1
  1. 7
      selfdrive/car/mazda/values.py
  2. 4
      selfdrive/car/tests/test_fw_fingerprint.py

@ -67,16 +67,11 @@ class Buttons:
FW_QUERY_CONFIG = FwQueryConfig(
requests=[
Request(
[StdQueries.MANUFACTURER_SOFTWARE_VERSION_REQUEST],
[StdQueries.MANUFACTURER_SOFTWARE_VERSION_RESPONSE],
),
# Log responses on powertrain bus
# TODO: check data to ensure ABS does not skip ISO-TP frames on bus 0
Request(
[StdQueries.MANUFACTURER_SOFTWARE_VERSION_REQUEST],
[StdQueries.MANUFACTURER_SOFTWARE_VERSION_RESPONSE],
bus=0,
logging=True,
),
],
)

@ -246,7 +246,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
@pytest.mark.timeout(60)
def test_fw_query_timing(self):
total_ref_time = 6.9
total_ref_time = 6.8
brand_ref_times = {
1: {
'gm': 0.5,
@ -255,7 +255,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
'ford': 0.1,
'honda': 0.55,
'hyundai': 0.65,
'mazda': 0.2,
'mazda': 0.1,
'nissan': 0.8,
'subaru': 0.45,
'tesla': 0.2,

Loading…
Cancel
Save