ugh gm is going to be slow

pull/31221/head
Shane Smiskol 2 years ago
parent 3773e66b68
commit 90da12f7d5
  1. 2
      selfdrive/car/gm/fingerprints.py
  2. 25
      selfdrive/car/gm/values.py
  3. 2
      selfdrive/car/tests/test_fw_fingerprint.py

@ -56,5 +56,5 @@ FINGERPRINTS = {
}
FW_VERSIONS = {
# CAR.BOLT_EUV: {}
CAR.BOLT_EUV: {}
}

@ -163,27 +163,16 @@ GM_FW_REQUESTS = [
GM_RX_OFFSET = 0x400
FW_QUERY_CONFIG = FwQueryConfig(
requests=[
requests=[request for bus, obd_multiplexing in ((0, True), (1, True), (1, False)) for req in GM_FW_REQUESTS for request in [
Request(
[StdQueries.SHORT_TESTER_PRESENT_REQUEST] + GM_FW_REQUESTS,
[StdQueries.SHORT_TESTER_PRESENT_RESPONSE] + [GM_FW_RESPONSE] * len(GM_FW_REQUESTS),
[StdQueries.SHORT_TESTER_PRESENT_REQUEST, req],
[StdQueries.SHORT_TESTER_PRESENT_RESPONSE, GM_FW_RESPONSE],
rx_offset=GM_RX_OFFSET,
bus=0,
bus=bus,
logging=True,
obd_multiplexing=obd_multiplexing,
),
Request(
[StdQueries.SHORT_TESTER_PRESENT_REQUEST] + GM_FW_REQUESTS,
[StdQueries.SHORT_TESTER_PRESENT_RESPONSE] + [GM_FW_RESPONSE] * len(GM_FW_REQUESTS),
rx_offset=GM_RX_OFFSET,
bus=1,
),
Request(
[StdQueries.SHORT_TESTER_PRESENT_REQUEST] + GM_FW_REQUESTS,
[StdQueries.SHORT_TESTER_PRESENT_RESPONSE] + [GM_FW_RESPONSE] * len(GM_FW_REQUESTS),
rx_offset=GM_RX_OFFSET,
bus=1,
obd_multiplexing=False,
),
],
]],
extra_ecus=[(Ecu.fwdCamera, 0x24b, None)],
)

@ -241,7 +241,7 @@ class TestFwFingerprintTiming(unittest.TestCase):
total_ref_time = 6.5
brand_ref_times = {
1: {
'gm': 0.15,
'gm': 1.55,
'body': 0.1,
'chrysler': 0.3,
'ford': 0.2,

Loading…
Cancel
Save