add Dc side config for inverters

This commit is contained in:
ig 2023-06-20 10:17:29 +02:00
parent 075c54d179
commit dbfb1b3707
1 changed files with 22 additions and 21 deletions

View File

@ -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 }; private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
public Double MinSoc { get; set; } public Double MinSoc { get; set; }
public UnixTime LastEoc { get; set; } public UnixTime LastEoc { get; set; }
public Double PConstant { get; set; } public Double PConstant { get; set; }
public Double ForceChargePower { get; set; } public Double GridSetPoint { get; set; }
public Double ForceDischargePower { get; set; } public Double BatterySelfDischargePower { get; set; }
public Double MaxInverterPower { get; set; } public Double HoldSocZone { get; set; }
public Double GridSetPoint { get; set; } public Double ControllerPConstant { get; set; }
public Double SelfDischargePower { get; set; }
public Double HoldSocZone { get; set; } public Double MaxDcBusVoltage { get; set; }
public Double ControllerPConstant { get; set; } public Double MinDcBusVoltage { get; set; }
public Double ReferenceDcBusVoltage { get; set; }
public static Config Default => new() public static Config Default => new()
{ {
MinSoc = 20, MinSoc = 20,
LastEoc = UnixTime.Epoch, LastEoc = UnixTime.Epoch,
PConstant = .5, PConstant = .5,
ForceChargePower = 1_000_000, GridSetPoint = -20000,
ForceDischargePower = -1_000_000, BatterySelfDischargePower = 200, // TODO: multiple batteries
MaxInverterPower = 32_000, HoldSocZone = 1, // TODO: find better name,
GridSetPoint = 0.0, ControllerPConstant = 0.5,
SelfDischargePower = 200, // TODO: multiple batteries MinDcBusVoltage = 730,
HoldSocZone = 1, // TODO: find better name, ReferenceDcBusVoltage = 750,
ControllerPConstant = 0.5 MaxDcBusVoltage = 770,
}; };