LatControl: remove duplicate logic for saturation (#26725)

this is already checked
old-commit-hash: d97336d5326190559d1ff0518daee273f270aaf8
This commit is contained in:
Shane Smiskol
2022-12-08 03:01:57 -08:00
committed by GitHub
parent bd9e2320ca
commit 883be4410f
+1 -1
View File
@@ -625,7 +625,7 @@ class Controls:
max_torque = abs(self.last_actuators.steer) > 0.99
if undershooting and turning and good_speed and max_torque:
self.events.add(EventName.steerSaturated)
elif lac_log.active and not CS.steeringPressed and lac_log.saturated:
elif lac_log.active and lac_log.saturated:
dpath_points = lat_plan.dPathPoints
if len(dpath_points):
# Check if we deviated from the path