mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-08 06:22:03 +08:00
only allow INDI wind down on user override (#20080)
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