Skip to content

Commit

Permalink
drop CI from latcontrol super
Browse files Browse the repository at this point in the history
  • Loading branch information
ClockeNessMnstr committed May 13, 2022
1 parent cb09b64 commit 9218273
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/latcontrol.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


class LatControl(ABC):
def __init__(self, CP, CI):
def __init__(self, CP):
self.sat_count_rate = 1.0 * DT_CTRL
self.sat_limit = CP.steerLimitTimer
self.sat_count = 0.
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/latcontrol_indi.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class LatControlINDI(LatControl):
def __init__(self, CP, CI):
super().__init__(CP, CI)
super().__init__(CP)
self.angle_steers_des = 0.

A = np.array([[1.0, DT_CTRL, 0.0],
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/latcontrol_pid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class LatControlPID(LatControl):
def __init__(self, CP, CI):
super().__init__(CP, CI)
super().__init__(CP)
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.steer_max, neg_limit=-self.steer_max)
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/latcontrol_torque.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

class LatControlTorque(LatControl):
def __init__(self, CP, CI):
super().__init__(CP, CI)
super().__init__(CP)
self.pid = PIDController(CP.lateralTuning.torque.kp, CP.lateralTuning.torque.ki,
k_f=CP.lateralTuning.torque.kf, pos_limit=self.steer_max, neg_limit=-self.steer_max)
self.get_steer_feedforward = CI.get_steer_feedforward_function()
Expand Down

0 comments on commit 9218273

Please sign in to comment.