This commit is contained in:
Jason Wen
2025-03-20 13:14:18 -04:00
parent d15a5ce300
commit bacf54d22a
@@ -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: