mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-08 17:23:43 +08:00
Update latcontrol_curvature.py
This commit is contained in:
@@ -36,8 +36,6 @@ class LatControlCurvature(LatControl):
|
||||
|
||||
pid_log.error = float(desired_curvature - actual_curvature)
|
||||
freeze_integrator = steer_limited_by_controls or CS.steeringPressed or CS.vEgo < 5
|
||||
if CS.steeringPressed:
|
||||
self.pid.i *= 0.8 # soft decay
|
||||
|
||||
output_curvature = self.pid.update(pid_log.error, feedforward=gravity_adjusted_curvature, speed=CS.vEgo, freeze_integrator=freeze_integrator)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user