Skip to content

Commit

Permalink
moving warning from w206 to w220 to prevent audio warning
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Apr 26, 2021
1 parent c76b523 commit 73049fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion selfdrive/car/tesla/HUD_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def update(self, enabled, CS, frame, actuators, cruise_cancel, hud_alert, audibl
CS.rLine = 0

#send messages for IC intergration
CS.DAS_206_apUnavailable = 1 if enabled and human_control else 0
#CS.DAS_206_apUnavailable = 1 if enabled and human_control else 0
CS.DAS_220_lcTempUnavailableRoad = 1 if enabled and human_control else 0
warnings = CS.DAS_gas_to_resume + \
CS.DAS_025_steeringOverride + \
CS.DAS_202_noisyEnvironment + \
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/car/tesla/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def update(self, cp, cp_cam):
ret.brakePressed = bool(cp_cam.vl["BrakeMessage"]["driverBrakeStatus"] != 1)
else:
ret.brakePressed = bool(cp.vl["BrakeMessage"]["driverBrakeStatus"] != 1)

ret.brakePressed = False #Brake disengages ACC, this just creates issues
# Steering wheel
if (self.CP.carFingerprint == CAR.PREAP_MODELS):
self.hands_on_level = cp_cam.vl["EPAS_sysStatus"]["EPAS_handsOnLevel"]
Expand Down

0 comments on commit 73049fc

Please sign in to comment.