mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 05:52:12 +08:00
Add enableBsm for Subaru Preglobal (#20962)
old-commit-hash: 79050611d6a269e9d5871fba8e33d6cc881c342b
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user