mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-29 08:13:53 +08:00
Damp shallow highway curves on Ioniq 5 HDA II
This commit is contained in:
@@ -129,6 +129,9 @@ class HKGVehicleTorquePolicy(HKGShapedTorquePolicy):
|
||||
highway = float(np.interp(speed, [27.0, 29.0], [0.0, 1.0]))
|
||||
arc = float(np.interp(abs(setpoint), [0.45, 0.65, 1.25, 1.6], [0.0, 1.0, 1.0, 0.0]))
|
||||
threshold += 0.18 * highway * arc
|
||||
high_speed = float(np.interp(speed, (28., 30., 33., 36.), (0., 1., 1., 0.)))
|
||||
shallow_arc = float(np.interp(abs(setpoint), (.35, .45, .70, .90), (0., 1., 1., 0.)))
|
||||
threshold += .80 * high_speed * shallow_arc
|
||||
return threshold, 1 + (
|
||||
shaping.get_ioniq_5_friction_scale(speed, setpoint, jerk) - 1
|
||||
) * shaping.get_ioniq_5_center_taper_scale(setpoint, speed)
|
||||
|
||||
@@ -126,6 +126,13 @@ def test_actual_first_driver_release_tick_preserves_dom_override_bypass(monkeypa
|
||||
(True, 28.0, 0.9, False, False, 0.09),
|
||||
(True, 26.0, 0.9, False, False, 0.0),
|
||||
(True, 30.0, 0.3, False, False, 0.0),
|
||||
(True, 30.0, 0.55, False, False, 0.89),
|
||||
(True, 34.5, 0.55, False, False, 0.49),
|
||||
(True, 36.0, 0.55, False, False, 0.09),
|
||||
(True, 27.0, 0.55, False, False, 0.0),
|
||||
(True, 30.0, 0.55, True, False, 0.0),
|
||||
(True, 30.0, 0.55, False, True, 0.0),
|
||||
(False, 30.0, 0.55, False, False, 0.0),
|
||||
(True, 30.0, 1.8, False, False, 0.0),
|
||||
(True, 30.0, 0.9, True, False, 0.0),
|
||||
(True, 30.0, 0.9, False, True, 0.0),
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"protected_inventory_sha256": "8a1990e726cf7d4e429d956c13b4f0d2c4346abf1641feb4c29e1c60aaf300c2", "schema_version": 1}
|
||||
{"protected_inventory_sha256": "2b54056a0a0c5c5c98df43b417ccabcac4f483f074bc4fa12145b80bfeb8da30", "schema_version": 1}
|
||||
|
||||
Reference in New Issue
Block a user