NNLC: ensure PID is always initialized properly (#1304)

This commit is contained in:
Jason Wen
2025-10-07 21:45:33 -04:00
committed by GitHub
parent aeaac22274
commit 408d52d72a

View File

@@ -58,7 +58,8 @@ class LatControlTorqueExtBase:
self.torque_from_lateral_accel_in_torque_space = CI.torque_from_lateral_accel_in_torque_space()
self._ff = 0.0
self._pid = PIDController(0.0, 0.0, k_f=0.0)
self._pid = PIDController(self.torque_params.kp, self.torque_params.ki,
k_f=self.torque_params.kf)
self._pid_log = None
self._setpoint = 0.0
self._measurement = 0.0