mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
and juggler
This commit is contained in:
@@ -11,6 +11,7 @@ import argparse
|
||||
from functools import partial
|
||||
|
||||
from openpilot.common.basedir import BASEDIR
|
||||
from openpilot.selfdrive.car.fingerprints import MIGRATION
|
||||
from openpilot.tools.lib.helpers import save_log
|
||||
|
||||
from openpilot.tools.lib.logreader import LogReader, ReadMode
|
||||
@@ -82,7 +83,7 @@ def juggle_route(route_or_segment_name, can, layout, dbc=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 = DBC[cp.carParams.carFingerprint]['pt']
|
||||
dbc = DBC[MIGRATION.get(cp.carParams.carFingerprint, cp.carParams.carFingerprint)]['pt']
|
||||
except Exception:
|
||||
pass
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user