diff --git a/csharp/App/SaliMax/src/SystemConfig/Config.cs b/csharp/App/SaliMax/src/SystemConfig/Config.cs index c156269ff..b68772e0e 100644 --- a/csharp/App/SaliMax/src/SystemConfig/Config.cs +++ b/csharp/App/SaliMax/src/SystemConfig/Config.cs @@ -14,29 +14,30 @@ public class Config //TODO: let IE choose from config files (Json) and connect t private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true }; - public Double MinSoc { get; set; } - public UnixTime LastEoc { get; set; } - public Double PConstant { get; set; } - public Double ForceChargePower { get; set; } - public Double ForceDischargePower { get; set; } - public Double MaxInverterPower { get; set; } - public Double GridSetPoint { get; set; } - public Double SelfDischargePower { get; set; } - public Double HoldSocZone { get; set; } - public Double ControllerPConstant { get; set; } - + public Double MinSoc { get; set; } + public UnixTime LastEoc { get; set; } + public Double PConstant { get; set; } + public Double GridSetPoint { get; set; } + public Double BatterySelfDischargePower { get; set; } + public Double HoldSocZone { get; set; } + public Double ControllerPConstant { get; set; } + + public Double MaxDcBusVoltage { get; set; } + public Double MinDcBusVoltage { get; set; } + public Double ReferenceDcBusVoltage { get; set; } + public static Config Default => new() { - MinSoc = 20, - LastEoc = UnixTime.Epoch, - PConstant = .5, - ForceChargePower = 1_000_000, - ForceDischargePower = -1_000_000, - MaxInverterPower = 32_000, - GridSetPoint = 0.0, - SelfDischargePower = 200, // TODO: multiple batteries - HoldSocZone = 1, // TODO: find better name, - ControllerPConstant = 0.5 + MinSoc = 20, + LastEoc = UnixTime.Epoch, + PConstant = .5, + GridSetPoint = -20000, + BatterySelfDischargePower = 200, // TODO: multiple batteries + HoldSocZone = 1, // TODO: find better name, + ControllerPConstant = 0.5, + MinDcBusVoltage = 730, + ReferenceDcBusVoltage = 750, + MaxDcBusVoltage = 770, };