Update latcontrol_curvature.py

This commit is contained in:
infiniteCable
2025-06-10 13:15:30 +02:00
committed by GitHub
parent 3a28de654d
commit 5260d68b9f
@@ -15,6 +15,10 @@ class LatControlCurvature(LatControl):
(CP.lateralTuning.pid.kiBP, CP.lateralTuning.pid.kiV),
k_f=CP.lateralTuning.pid.kf, pos_limit=self.curvature_max, neg_limit=-self.curvature_max)
def reset(self):
super().reset()
self.pid.reset()
def update(self, active, CS, VM, params, steer_limited_by_controls, desired_curvature, calibrated_pose, curvature_limited):
pid_log = log.ControlsState.LateralCurvatureState.new_message()
if not active: