mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
i6
This commit is contained in:
@@ -260,7 +260,7 @@ class TestLatControl:
|
||||
assert get_ioniq_6_output_taper_scale(1.2, 0.0, 25.0) > 0.94
|
||||
|
||||
def test_ioniq_6_friction_threshold_curve(self):
|
||||
base = max(get_friction_threshold(6.0), 0.30)
|
||||
base = max(get_friction_threshold(6.0), 0.34)
|
||||
left_turn_in = get_ioniq_6_friction_threshold(6.0, 0.5, 0.8)
|
||||
right_turn_in = get_ioniq_6_friction_threshold(6.0, -0.5, -0.8)
|
||||
left_unwind = get_ioniq_6_friction_threshold(6.0, 0.5, -0.8)
|
||||
@@ -268,7 +268,7 @@ class TestLatControl:
|
||||
assert max(left_turn_in, right_turn_in) < base
|
||||
assert left_unwind >= base
|
||||
assert right_unwind >= base
|
||||
assert get_ioniq_6_friction_threshold(25.0, 0.0, 0.0) >= 0.30
|
||||
assert get_ioniq_6_friction_threshold(25.0, 0.0, 0.0) >= 0.34
|
||||
|
||||
def test_ioniq_6_friction_scale_curve(self):
|
||||
base = get_ioniq_6_friction_scale(25.0, 0.5, 0.8)
|
||||
@@ -369,7 +369,7 @@ class TestLatControl:
|
||||
_, _, lac_log = controller.update(True, CS, VM, params, False, 0.0025, False, 0.2, None, None, starpilot_toggles)
|
||||
|
||||
assert lac_log.active
|
||||
assert controller.torque_params.latAccelFactor == pytest.approx(3.0 * 1.15)
|
||||
assert controller.torque_params.latAccelFactor == pytest.approx(3.0 * 1.22)
|
||||
|
||||
def test_ioniq_6_update_path_does_not_post_taper_output(self, monkeypatch):
|
||||
base_controller, VM, CS, params, starpilot_toggles = self._build_torque_controller(HYUNDAI.HYUNDAI_IONIQ_6)
|
||||
@@ -438,7 +438,7 @@ class TestLatControl:
|
||||
|
||||
assert steady_left < 1.0
|
||||
assert steady_right < 1.0
|
||||
assert steady_left < steady_right
|
||||
assert steady_right < steady_left
|
||||
assert turn_in_left > steady_left
|
||||
assert turn_in_right > steady_right
|
||||
assert unwind_left < steady_left
|
||||
|
||||
Reference in New Issue
Block a user