mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-05 15:35:40 +08:00
TODO-SP
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user