Add enableBsm for Subaru Preglobal (#20962)

old-commit-hash: 79050611d6
commatwo_master
martinl 4 years ago committed by GitHub
parent 6922150ede
commit 1b6fe77d69
  1. 3
      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

Loading…
Cancel
Save