mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-05 00:25:40 +08:00
Tesla: set enableBsm flag for 3 and Y (#403)
Set enableBsm flag for Tesla 3Y
This commit is contained in:
@@ -86,8 +86,9 @@ class CarState(CarStateBase):
|
||||
ret.seatbeltUnlatched = cp.vl["UI_warning"]["buckleStatus"] != 1
|
||||
|
||||
# Blindspot
|
||||
ret.leftBlindspot = cp_cam.vl["DAS_status"]["DAS_blindSpotRearLeft"] != 0
|
||||
ret.rightBlindspot = cp_cam.vl["DAS_status"]["DAS_blindSpotRearRight"] != 0
|
||||
if self.CP.enableBsm:
|
||||
ret.leftBlindspot = cp_cam.vl["DAS_status"]["DAS_blindSpotRearLeft"] != 0
|
||||
ret.rightBlindspot = cp_cam.vl["DAS_status"]["DAS_blindSpotRearRight"] != 0
|
||||
|
||||
# AEB
|
||||
ret.stockAeb = (cp_cam.vl["DAS_control"]["DAS_aebEvent"] == 1)
|
||||
|
||||
@@ -31,6 +31,7 @@ class CarInterface(CarInterfaceBase):
|
||||
flags |= Panda.FLAG_TESLA_LONG_CONTROL
|
||||
ret.openpilotLongitudinalControl = True
|
||||
ret.safetyConfigs = [get_safety_config(car.CarParams.SafetyModel.tesla, flags)]
|
||||
ret.enableBsm = True
|
||||
|
||||
ret.steerLimitTimer = 1.0
|
||||
ret.steerActuatorDelay = 0.25
|
||||
|
||||
Reference in New Issue
Block a user