only allow INDI wind down on user override (#20080)

pull/20146/head
Willem Melching 4 years ago committed by GitHub
parent f830ac646b
commit 280192ed14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/controls/lib/latcontrol_indi.py

@ -115,6 +115,10 @@ class LatControlINDI():
g_inv = 1. / self.G
delta_u = g_inv * accel_error
# If steering pressed, only allow wind down
if CS.steeringPressed and (delta_u * self.output_steer > 0):
delta_u = 0
# Enforce rate limit
if self.enforce_rate_limit:
steer_max = float(CarControllerParams.STEER_MAX)

Loading…
Cancel
Save