mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 02:23:40 +08:00
Reduce residual highway steering oscillation on ninth-generation Accord
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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),
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "2487c8231a81c1770f53fba377653b4bc2e11df2faa469fcc059c200a9066157", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "b3356a15ea98dc5b56fe18d911648059d30e05546cbfee26cbf498e251497809", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user