From 93539bee0e7d0bb2ad7e4610d75ceb540b4458d3 Mon Sep 17 00:00:00 2001 From: atef Date: Fri, 8 Sep 2023 09:34:38 +0200 Subject: [PATCH] Add max power control in Program.cs --- csharp/App/SaliMax/src/Program.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 52554cb11..8a857c7db 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -223,6 +223,8 @@ internal static class Program dcDevices.ForEach(d => d.Control.CurrentControl.MaxBatteryChargingCurrent = configFile.MaxBatteryChargingCurrent); dcDevices.ForEach(d => d.Control.CurrentControl.MaxBatteryDischargingCurrent = configFile.MaxBatteryDischargingCurrent); + dcDevices.ForEach(d => d.Control.MaxDcPower = configFile.MaxDcPower); + dcDevices.ForEach(d => d.Control.VoltageLimits.MaxBatteryVoltage = configFile.MaxChargeBatteryVoltage); dcDevices.ForEach(d => d.Control.VoltageLimits.MinBatteryVoltage = configFile.MinDischargeBatteryVoltage); dcDevices.ForEach(d => d.Control.ControlMode = DcControlMode.VoltageDroop);