From bacf54d22a5894381c7ab2c948bc55eaa2ead097 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Thu, 20 Mar 2025 13:14:18 -0400 Subject: [PATCH] TODO-SP --- .../selfdrive/controls/lib/latcontrol_torque_lat_accel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sunnypilot/selfdrive/controls/lib/latcontrol_torque_lat_accel.py b/sunnypilot/selfdrive/controls/lib/latcontrol_torque_lat_accel.py index 7569f77c15..9b8a0a12c5 100644 --- a/sunnypilot/selfdrive/controls/lib/latcontrol_torque_lat_accel.py +++ b/sunnypilot/selfdrive/controls/lib/latcontrol_torque_lat_accel.py @@ -13,8 +13,8 @@ from openpilot.sunnypilot.selfdrive.controls.lib.latcontrol_torque_ext_base impo class LatControlTorqueCustomLateralAccel(LatControlTorqueExtBase): def __init__(self, lac_torque, CP, CP_SP): super().__init__(lac_torque, CP, CP_SP) - self.params = Params() - self.use_lateral_jerk: bool = self.params.get_bool("LateralTorqueControlLateralJerk") + self.params = Params() # TODO-SP: unused after moving the param to cereal + self.use_lateral_jerk: bool = self.params.get_bool("LateralTorqueControlLateralJerk") # TODO-SP: move this to cereal def update_custom_lateral_acceleration(self, CS, roll_compensation, gravity_adjusted_lateral_accel): if not self.use_lateral_jerk: