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}