Skip to content

Commit

Permalink
fixed logic for brake pedal when the BRK setting is set to ignore brake
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver committed Aug 12, 2018
1 parent 891e91a commit 43657c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/tesla/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def update(self, c):
ret.gasPressed = self.CS.user_gas_pressed

# brake pedal
ret.brakePressed = self.CS.brake_pressed != 0
ret.brakePressed = (self.CS.brake_pressed != 0) and (self.CS.cstm_btns.get_button_status("brake") == 0)
# FIXME: read sendcan for brakelights
brakelights_threshold = 0.1
ret.brakeLights = bool(self.CS.brake_switch or
Expand Down

0 comments on commit 43657c5

Please sign in to comment.