Increase highway steering damping on ninth-generation Accord

This commit is contained in:
firestar5683
2026-11-26 10:25:52 -06:00
parent 0eb7b7f820
commit ed82ef5fde
3 changed files with 6 additions and 6 deletions
@@ -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):
@@ -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),
+1 -1
View File
@@ -1 +1 @@
{"protected_inventory_sha256": "e9cc75cc837aa07af2a519a1312f5b74044b54cf629090858c04c34b31fcc838", "schema_version": 1}
{"protected_inventory_sha256": "880ab03e1bc361717e50e0452b29648ad6bb236fad3c9e38f352b13d891c88de", "schema_version": 1}