mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-21 01:02:48 +08:00
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: f0b6f489489731b4d968880d6d9e5a58dbc14035
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user