Skip to content

Commit

Permalink
Toyota: adaptive ACCEL_NET for new long tune (commaai#34034)
Browse files Browse the repository at this point in the history
* bump

* bump

* fix that

* should be a better way

* raise
  • Loading branch information
sshane authored Nov 16, 2024
1 parent 55b94ab commit 863d86c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion opendbc_repo
Submodule opendbc_repo updated 51 files
+15 −6 opendbc/car/__init__.py
+4 −4 opendbc/car/body/carcontroller.py
+5 −4 opendbc/car/body/carstate.py
+2 −2 opendbc/car/body/values.py
+4 −4 opendbc/car/chrysler/carcontroller.py
+17 −16 opendbc/car/chrysler/carstate.py
+1 −1 opendbc/car/chrysler/interface.py
+3 −4 opendbc/car/chrysler/radar_interface.py
+7 −4 opendbc/car/chrysler/values.py
+4 −4 opendbc/car/ford/carcontroller.py
+19 −17 opendbc/car/ford/carstate.py
+3 −3 opendbc/car/ford/interface.py
+2 −2 opendbc/car/ford/radar_interface.py
+8 −3 opendbc/car/ford/values.py
+6 −6 opendbc/car/gm/carcontroller.py
+30 −29 opendbc/car/gm/carstate.py
+2 −2 opendbc/car/gm/radar_interface.py
+6 −2 opendbc/car/gm/values.py
+4 −4 opendbc/car/honda/carcontroller.py
+24 −21 opendbc/car/honda/carstate.py
+2 −2 opendbc/car/honda/radar_interface.py
+27 −23 opendbc/car/honda/values.py
+4 −4 opendbc/car/hyundai/carcontroller.py
+80 −78 opendbc/car/hyundai/carstate.py
+2 −2 opendbc/car/hyundai/interface.py
+3 −3 opendbc/car/hyundai/radar_interface.py
+4 −4 opendbc/car/hyundai/values.py
+12 −32 opendbc/car/interfaces.py
+4 −4 opendbc/car/mazda/carcontroller.py
+14 −14 opendbc/car/mazda/carstate.py
+2 −2 opendbc/car/mazda/values.py
+4 −4 opendbc/car/nissan/carcontroller.py
+26 −31 opendbc/car/nissan/carstate.py
+3 −3 opendbc/car/nissan/values.py
+4 −4 opendbc/car/subaru/carcontroller.py
+33 −35 opendbc/car/subaru/carstate.py
+7 −7 opendbc/car/subaru/values.py
+4 −6 opendbc/car/tesla/carcontroller.py
+30 −29 opendbc/car/tesla/carstate.py
+5 −4 opendbc/car/tesla/values.py
+1 −1 opendbc/car/tests/test_car_interfaces.py
+1 −1 opendbc/car/tests/test_platform_configs.py
+34 −9 opendbc/car/toyota/carcontroller.py
+26 −25 opendbc/car/toyota/carstate.py
+5 −6 opendbc/car/toyota/interface.py
+2 −1 opendbc/car/toyota/radar_interface.py
+2 −1 opendbc/car/toyota/tests/test_toyota.py
+4 −2 opendbc/car/toyota/values.py
+4 −4 opendbc/car/volkswagen/carcontroller.py
+34 −41 opendbc/car/volkswagen/carstate.py
+4 −4 opendbc/car/volkswagen/values.py
13 changes: 12 additions & 1 deletion tools/cabana/dbc/generate_dbc_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,23 @@
import argparse
import json

from opendbc.car import Bus
from opendbc.car.fingerprints import MIGRATION
from opendbc.car.values import PLATFORMS


def generate_dbc_json() -> str:
dbc_map = {platform.name: platform.config.dbc_dict['pt'] for platform in PLATFORMS.values() if platform != "MOCK"}
dbc_map = {}
for platform in PLATFORMS.values():
if platform != "MOCK":
if Bus.pt in platform.config.dbc_dict:
dbc_map[platform.name] = platform.config.dbc_dict[Bus.pt]
elif Bus.main in platform.config.dbc_dict:
dbc_map[platform.name] = platform.config.dbc_dict[Bus.main]
elif Bus.party in platform.config.dbc_dict:
dbc_map[platform.name] = platform.config.dbc_dict[Bus.party]
else:
raise ValueError("Unknown main type")

for m in MIGRATION:
if MIGRATION[m] in dbc_map:
Expand Down

0 comments on commit 863d86c

Please sign in to comment.