From 1b6fe77d69017226158a64bdadbf01f307e354f0 Mon Sep 17 00:00:00 2001 From: martinl Date: Wed, 19 May 2021 09:45:37 +0300 Subject: [PATCH] Add enableBsm for Subaru Preglobal (#20962) old-commit-hash: 79050611d6a269e9d5871fba8e33d6cc881c342b --- selfdrive/car/subaru/interface.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/subaru/interface.py b/selfdrive/car/subaru/interface.py index bc5502f480..bb8669fb12 100644 --- a/selfdrive/car/subaru/interface.py +++ b/selfdrive/car/subaru/interface.py @@ -19,15 +19,16 @@ class CarInterface(CarInterfaceBase): if candidate in PREGLOBAL_CARS: ret.safetyModel = car.CarParams.SafetyModel.subaruLegacy + ret.enableBsm = 0x25c in fingerprint[0] else: ret.safetyModel = car.CarParams.SafetyModel.subaru + ret.enableBsm = 0x228 in fingerprint[0] # Subaru port is a community feature, since we don't own one to test ret.communityFeature = True ret.dashcamOnly = candidate in PREGLOBAL_CARS ret.enableCamera = True - ret.enableBsm = 0x228 in fingerprint[0] ret.steerRateCost = 0.7 ret.steerLimitTimer = 0.4