diff --git a/packages/control/algorithm/integration_test/conftest.py b/packages/control/algorithm/integration_test/conftest.py index 98923f300e..ac2f44d16f 100644 --- a/packages/control/algorithm/integration_test/conftest.py +++ b/packages/control/algorithm/integration_test/conftest.py @@ -26,6 +26,7 @@ def data_() -> None: data.data.cp_data[f"cp{i}"].data.config.phase_1 = i-2 data.data.cp_data[f"cp{i}"].data.set.charging_ev = i data.data.cp_data[f"cp{i}"].data.set.charging_ev_data = Ev(i) + data.data.cp_data[f"cp{i}"].data.set.charging_ev_data.ev_template.data.max_current_single_phase = 32 data.data.cp_data[f"cp{i}"].data.get.plug_state = True data.data.cp_data[f"cp{i}"].data.set.plug_time = f"12/01/2022, 15:0{i}:11" data.data.cp_data[f"cp{i}"].data.set.charging_ev_data.ev_template.data.nominal_difference = 2 diff --git a/packages/control/algorithm/surplus_controlled_test.py b/packages/control/algorithm/surplus_controlled_test.py index a11f8dbb43..a364bdd460 100644 --- a/packages/control/algorithm/surplus_controlled_test.py +++ b/packages/control/algorithm/surplus_controlled_test.py @@ -72,8 +72,8 @@ def test_limit_adjust_current(new_current: float, expected_current: float, monke @pytest.mark.parametrize("phases, required_currents, expected_currents", [ - pytest.param(1, [10, 0, 0], [32, 0, 0]), - pytest.param(1, [0, 15, 0], [0, 32, 0]), + pytest.param(1, [10, 0, 0], [16, 0, 0]), + pytest.param(1, [0, 15, 0], [0, 16, 0]), pytest.param(3, [10]*3, [16]*3), ]) def test_set_required_current_to_max(phases: int, diff --git a/packages/control/ev.py b/packages/control/ev.py index 0dfe941d08..32f9d2a3be 100644 --- a/packages/control/ev.py +++ b/packages/control/ev.py @@ -136,7 +136,7 @@ class EvTemplateData: control_pilot_interruption_duration: int = 4 average_consump: float = 17000 min_current: int = 6 - max_current_single_phase: int = 32 + max_current_single_phase: int = 16 battery_capacity: float = 82000 efficiency: float = 90 nominal_difference: float = 1