diff --git a/opendbc_repo b/opendbc_repo index 3fc9bdb8c93926..09fc1d2f5e9833 160000 --- a/opendbc_repo +++ b/opendbc_repo @@ -1 +1 @@ -Subproject commit 3fc9bdb8c939260134367ea9a077cdb90c338710 +Subproject commit 09fc1d2f5e9833c95690db1497937524c5f46638 diff --git a/selfdrive/debug/check_can_parser_performance.py b/selfdrive/debug/check_can_parser_performance.py index 2bddd362ae792e..467eef271e2cea 100755 --- a/selfdrive/debug/check_can_parser_performance.py +++ b/selfdrive/debug/check_can_parser_performance.py @@ -4,6 +4,7 @@ from tqdm import tqdm from cereal import car +from opendbc.can.parser import ParsedCanData from opendbc.car.tests.routes import CarTestRoute from openpilot.selfdrive.car.tests.test_models import TestCarModelBase from openpilot.selfdrive.pandad import can_capnp_to_list @@ -29,10 +30,10 @@ class CarModelTestCase(TestCarModelBase): msgs = [m.as_builder().to_bytes() for m in tm.can_msgs] start_t = time.process_time_ns() for msg in msgs: - can_list = can_capnp_to_list([msg]) + can_list = ParsedCanData(can_capnp_to_list([msg])) for cp in tm.CI.can_parsers: if cp is not None: - cp.update_strings(can_list) + cp.update_from_parsed(can_list) ets.append((time.process_time_ns() - start_t) * 1e-6) print(f'{len(tm.can_msgs)} CAN packets, {N_RUNS} runs')