Skip to content

Commit

Permalink
Set enableBsm flag for Tesla 3Y
Browse files Browse the repository at this point in the history
  • Loading branch information
carleeno committed Aug 8, 2024
1 parent 86220b4 commit cac69fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions selfdrive/car/tesla/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,9 @@ def update(self, cp, cp_cam, cp_adas):
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)
Expand Down
1 change: 1 addition & 0 deletions selfdrive/car/tesla/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def _get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs):
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
Expand Down

0 comments on commit cac69fa

Please sign in to comment.