Skip to content

Commit

Permalink
ignore. only once per file?
Browse files Browse the repository at this point in the history
  • Loading branch information
csouers committed Sep 10, 2024
1 parent f96f612 commit 35b0a60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selfdrive/car/car_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,12 @@ def update(self, CS: CarStateBase, CS_prev: car.CarState, CC: CarControllerBase,
self.low_speed_alert = False

# For cars that can forcibly disengage steering without setting a fault
if CS.out.vEgo > self.CP.minSteerSpeed and CC_prev.enabled and not CS.steer_on:
CS.steer_off_cnt += 1
if CS.out.vEgo > self.CP.minSteerSpeed and CC_prev.enabled and not CS.steer_on: # type: ignore[attr-defined]
CS.steer_off_cnt += 1 # type: ignore[attr-defined]
else:
CS.steer_off_cnt = 0

if self.low_speed_alert: # type: ignore[attr-defined]
if self.low_speed_alert:
events.add(EventName.belowSteerSpeed)

elif self.CP.carName == 'toyota':
Expand Down

0 comments on commit 35b0a60

Please sign in to comment.