From e01e382f81a0c01b46bb0df3b6016919cca55641 Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Fri, 27 Nov 2026 00:02:56 -0600 Subject: [PATCH] Reduce residual highway steering oscillation on ninth-generation Accord --- openpilot/selfdrive/controls/lib/latcontrol_torque.py | 2 +- .../starpilot/lateral/tests/test_accord_highway_friction.py | 6 +++--- prebuilt.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openpilot/selfdrive/controls/lib/latcontrol_torque.py b/openpilot/selfdrive/controls/lib/latcontrol_torque.py index 664c519dac..5e852ee3cd 100644 --- a/openpilot/selfdrive/controls/lib/latcontrol_torque.py +++ b/openpilot/selfdrive/controls/lib/latcontrol_torque.py @@ -118,7 +118,7 @@ class LatControlTorque(LatControl): if self.accord_center_friction and not CS.steeringPressed: speed_weight = np.interp(CS.vEgo * CV.MS_TO_MPH, [50., 58.], [0., 1.]) center_weight = np.interp(abs(setpoint), [0.30, 0.60], [1., 0.]) - friction *= 1.0 - 0.65 * speed_weight * center_weight + friction *= 1.0 - 0.80 * speed_weight * center_weight return friction def update(self, active, CS, VM, params, steer_limited_by_safety, desired_curvature, curvature_limited, lat_delay): diff --git a/openpilot/starpilot/lateral/tests/test_accord_highway_friction.py b/openpilot/starpilot/lateral/tests/test_accord_highway_friction.py index fe6880a96a..69a835179d 100644 --- a/openpilot/starpilot/lateral/tests/test_accord_highway_friction.py +++ b/openpilot/starpilot/lateral/tests/test_accord_highway_friction.py @@ -12,9 +12,9 @@ from openpilot.starpilot.lateral.controller_selection import ControllerMode @pytest.mark.parametrize("speed, setpoint, override, expected", [ - (61., 0.2, False, 0.35), - (54., 0.2, False, 0.675), - (61., 0.450, False, 0.675), + (61., 0.2, False, 0.20), + (54., 0.2, False, 0.60), + (61., 0.450, False, 0.60), (50., 0.2, False, 1.0), (61., 0.60, False, 1.0), (61., 0.2, True, 1.0), diff --git a/prebuilt.json b/prebuilt.json index 3a23e31048..7f902d010c 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "2487c8231a81c1770f53fba377653b4bc2e11df2faa469fcc059c200a9066157", "schema_version": 1} +{"protected_inventory_sha256": "b3356a15ea98dc5b56fe18d911648059d30e05546cbfee26cbf498e251497809", "schema_version": 1}