From 53724e8b6cbcfc6c9d49ebd0834624fa23d0f6e9 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 9 Jun 2022 19:29:54 -0700 Subject: [PATCH] bypass HDA2 dashcam with file (#24803) Co-authored-by: Comma Device --- selfdrive/car/hyundai/interface.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/hyundai/interface.py b/selfdrive/car/hyundai/interface.py index 37f29d23c3..831b318d55 100644 --- a/selfdrive/car/hyundai/interface.py +++ b/selfdrive/car/hyundai/interface.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import os from cereal import car from panda import Panda from common.conversions import Conversions as CV @@ -37,7 +38,9 @@ class CarInterface(CarInterfaceBase): # These cars have been put into dashcam only due to both a lack of users and test coverage. # These cars likely still work fine. Once a user confirms each car works and a test route is # added to selfdrive/car/tests/routes.py, we can remove it from this list. - ret.dashcamOnly = candidate in {CAR.KIA_OPTIMA_H, CAR.ELANTRA_GT_I30} or candidate in HDA2_CAR + ret.dashcamOnly = candidate in {CAR.KIA_OPTIMA_H, CAR.ELANTRA_GT_I30} + if candidate in HDA2_CAR: + ret.dashcamOnly = not os.path.exists('/data/enable-ev6') ret.steerActuatorDelay = 0.1 # Default delay ret.steerRateCost = 0.5