LatControl: remove duplicate logic for saturation (#26725)

this is already checked
old-commit-hash: d97336d532
taco
Shane Smiskol 2 years ago committed by GitHub
parent bd9e2320ca
commit 883be4410f
  1. 2
      selfdrive/controls/controlsd.py

@ -625,7 +625,7 @@ class Controls:
max_torque = abs(self.last_actuators.steer) > 0.99 max_torque = abs(self.last_actuators.steer) > 0.99
if undershooting and turning and good_speed and max_torque: if undershooting and turning and good_speed and max_torque:
self.events.add(EventName.steerSaturated) 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 dpath_points = lat_plan.dPathPoints
if len(dpath_points): if len(dpath_points):
# Check if we deviated from the path # Check if we deviated from the path

Loading…
Cancel
Save