Skip to content

Commit

Permalink
Update carcontroller.py
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 2e4aabb commit 91633ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfdrive/car/toyota/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ def update(self, CC, CS):
self.steer_rate_counter = 0

apply_steer_req = 1
# Cut steering while we're in a known fault state (2s)
if not CC.latActive: # or CS.steer_state in (9, 25) or abs(CS.out.steeringRateDeg) > 100 or (abs(CS.out.steeringAngleDeg) > 150 and CS.CP.carFingerprint in [CAR.RAV4H, CAR.PRIUS]):
if not CC.latActive:
apply_steer = 0
apply_steer_req = 0
elif self.steer_rate_counter > MAX_STEER_RATE_FRAMES:
Expand Down

0 comments on commit 91633ea

Please sign in to comment.