mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-15 09:04:43 +08:00
NNLC: ensure PID is always initialized properly (#1304)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user