mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-22 19:53:45 +08:00
move selfdrive/car to opendbc (#32630)
* move most of /car * move some car tests move some car tests * fix selfdrive/car/tests * fix selfdrive/controls tests * fix the rest of the selfdrive tests * bump opendbc * fix all tests * few more non-test references * remove opcar and move docs to car fix these debugging scripts fix docs * bump opendbc and panda forgot panda
This commit is contained in:
@@ -10,8 +10,8 @@ import requests
|
||||
import argparse
|
||||
from functools import partial
|
||||
|
||||
from opendbc.car.fingerprints import MIGRATION
|
||||
from openpilot.common.basedir import BASEDIR
|
||||
from openpilot.selfdrive.car.fingerprints import MIGRATION
|
||||
from openpilot.tools.lib.logreader import LogReader, ReadMode, save_log
|
||||
|
||||
juggle_dir = os.path.dirname(os.path.realpath(__file__))
|
||||
@@ -83,7 +83,7 @@ def juggle_route(route_or_segment_name, can, layout, dbc=None):
|
||||
if dbc is None:
|
||||
for cp in [m for m in all_data if m.which() == 'carParams']:
|
||||
try:
|
||||
DBC = __import__(f"openpilot.selfdrive.car.{cp.carParams.carName}.values", fromlist=['DBC']).DBC
|
||||
DBC = __import__(f"opendbc.car.{cp.carParams.carName}.values", fromlist=['DBC']).DBC
|
||||
fingerprint = cp.carParams.carFingerprint
|
||||
dbc = DBC[MIGRATION.get(fingerprint, fingerprint)]['pt']
|
||||
except Exception:
|
||||
|
||||
Reference in New Issue
Block a user