mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-08 01:03:41 +08:00
Update latcontrol_curvature.py
This commit is contained in:
@@ -7,8 +7,8 @@ from openpilot.common.pid import PIDController
|
||||
|
||||
|
||||
class LatControlCurvature(LatControl):
|
||||
def __init__(self, CP, CI):
|
||||
super().__init__(CP, CI)
|
||||
def __init__(self, CP, CP_SP, CI):
|
||||
super().__init__(CP, CP_SP, CI)
|
||||
self.pid = PIDController((CP.lateralTuning.pid.kpBP, CP.lateralTuning.pid.kpV),
|
||||
(CP.lateralTuning.pid.kiBP, CP.lateralTuning.pid.kiV),
|
||||
k_f=CP.lateralTuning.pid.kf, pos_limit=self.curvature_max, neg_limit=-self.curvature_max)
|
||||
|
||||
Reference in New Issue
Block a user