Skip to content

Commit

Permalink
apply latcontrol_angle's active checking to all controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Nov 3, 2021
1 parent 21bcbc2 commit d010789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def state_control(self, CS):
lac_log.saturated = abs(steer) >= 0.9

# Send a "steering required alert" if saturation count has reached the limit
if (lac_log.saturated and not CS.steeringPressed):
if lac_log.active and lac_log.saturated and not CS.steeringPressed:
if len(lat_plan.dPathPoints):
# Check if we deviated from the path
left_deviation = actuators.steer > 0 and lat_plan.dPathPoints[0] < -0.1
Expand Down

0 comments on commit d010789

Please sign in to comment.