mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-22 08:53:44 +08:00
only allow INDI wind down on user override (#20080)
old-commit-hash: 280192ed1443f112463417c2d815ea8ee2762fbd
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user