Skip to content

Commit

Permalink
this was renamed oops i forgot
Browse files Browse the repository at this point in the history
Co-Authored-By: Comma Device <device@comma.ai>
Co-Authored-By: Willem Melching <willem.melching@gmail.com>
  • Loading branch information
3 people committed Jun 22, 2022
1 parent 2b35cb8 commit d22d8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/toyota/carstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ def update(self, cp, cp_cam):
# we could use the override bit from dbc, but it's triggered at too high torque values
ret.steeringPressed = abs(ret.steeringTorque) > STEER_THRESHOLD
# steer rate fault, goes to 21 or 25 for 1 frame, then 9 for ~2 seconds
ret.steerWarning = cp.vl["EPS_STATUS"]["LKA_STATE"] in (0, 9, 21, 25)
ret.steerFaultTemporary = cp.vl["EPS_STATUS"]["LKA_STATE"] in (0, 9, 21, 25)
# 17 is a fault from a prolonged high torque delta between cmd and user
ret.steerError = cp.vl["EPS_STATUS"]["LKA_STATE"] == 17
ret.steerFaultPermanent = cp.vl["EPS_STATUS"]["LKA_STATE"] == 17

if self.CP.carFingerprint in (CAR.LEXUS_IS, CAR.LEXUS_RC):
ret.cruiseState.available = cp.vl["DSU_CRUISE"]["MAIN_ON"] != 0
Expand Down

0 comments on commit d22d8b6

Please sign in to comment.