diff --git a/openpilot/selfdrive/controls/lib/latcontrol_torque.py b/openpilot/selfdrive/controls/lib/latcontrol_torque.py index 668035aa54..8b8bf65b7c 100644 --- a/openpilot/selfdrive/controls/lib/latcontrol_torque.py +++ b/openpilot/selfdrive/controls/lib/latcontrol_torque.py @@ -113,8 +113,8 @@ class LatControlTorque(LatControl): friction *= 1.0 - 0.5 * speed_weight * center_weight 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.25, 0.60], [1., 0.]) - friction *= 1.0 - 0.35 * speed_weight * center_weight + center_weight = np.interp(abs(setpoint), [0.30, 0.60], [1., 0.]) + friction *= 1.0 - 0.65 * 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 c8ee41b98e..fe6880a96a 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.65), - (54., 0.2, False, 0.825), - (61., 0.425, False, 0.825), + (61., 0.2, False, 0.35), + (54., 0.2, False, 0.675), + (61., 0.450, False, 0.675), (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 3342ddbb33..add76115d6 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "e9cc75cc837aa07af2a519a1312f5b74044b54cf629090858c04c34b31fcc838", "schema_version": 1} +{"protected_inventory_sha256": "880ab03e1bc361717e50e0452b29648ad6bb236fad3c9e38f352b13d891c88de", "schema_version": 1}