From eef175d247c217754cca79d7303e3424c102c06a Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Fri, 12 Jul 2019 09:35:05 +1000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8F=83=E6=95=B8=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/params.py | 6 ++++-- selfdrive/car/car_helpers.py | 2 +- selfdrive/dragonpilot/dragonconf/__init__.py | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/params.py b/common/params.py index c09ab963e..451a9c250 100755 --- a/common/params.py +++ b/common/params.py @@ -84,8 +84,10 @@ keys = { "DragonTempDisableSteerOnSignal": [TxType.PERSISTENT], "DragonDisableLogger": [TxType.PERSISTENT], "DragonNoctuaMode": [TxType.PERSISTENT], - "DragonUseCachedCar": [TxType.PERSISTENT], - "DragonCachedCar": [TxType.PERSISTENT], + "DragonCacheCar": [TxType.PERSISTENT], + "DragonCachedModel": [TxType.PERSISTENT], + "DragonCachedFP": [TxType.PERSISTENT], + "DragonCachedVIN": [TxType.PERSISTENT], } diff --git a/selfdrive/car/car_helpers.py b/selfdrive/car/car_helpers.py index e9d5f08cc..5977663df 100644 --- a/selfdrive/car/car_helpers.py +++ b/selfdrive/car/car_helpers.py @@ -83,7 +83,7 @@ def fingerprint(logcan, sendcan): frame = 0 - if params.get("DragonUseCachedCar") == "1" and params.get("DragonCachedFP") != "" and params.get("DragonCachedModel") != "": + if params.get("DragonCacheCar") == "1" and params.get("DragonCachedFP") != "" and params.get("DragonCachedModel") != "": candidate_cars = [params.get("DragonCachedModel")] finger = params.get("DragonCachedFP") vin = params.get("DragonCachedVIN") diff --git a/selfdrive/dragonpilot/dragonconf/__init__.py b/selfdrive/dragonpilot/dragonconf/__init__.py index 8846bf7ed..0234337b2 100644 --- a/selfdrive/dragonpilot/dragonconf/__init__.py +++ b/selfdrive/dragonpilot/dragonconf/__init__.py @@ -12,7 +12,7 @@ default_conf = { 'DragonTempDisableSteerOnSignal': '0', 'DragonDisableLogger': '0', 'DragonNoctuaMode': '0', - 'DragonUseCachedCar': '1', + 'DragonCacheCar': '1', 'DragonCachedModel': '', # for cache car 'DragonCachedFP': '', # for cache car 'DragonCachedVIN': '', # for cache car