Bugfix: Reset saturated_count if angle no longer saturated (#1522)

old-commit-hash: 135385c5fb
commatwo_master
Andre Volmensky 5 years ago committed by GitHub
parent a479ab0802
commit f6c2c72851
  1. 2
      selfdrive/controls/controlsd.py

@ -364,6 +364,8 @@ class Controls:
if angle_control_saturated and not CS.steeringPressed and self.active:
self.saturated_count += 1
else:
self.saturated_count = 0
# Send a "steering required alert" if saturation count has reached the limit
if (lac_log.saturated and not CS.steeringPressed) or \

Loading…
Cancel
Save