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

albatross
Andre Volmensky 2020-05-16 17:14:10 +09:00 committed by GitHub
parent 7abcf71f92
commit 135385c5fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 \