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

@ -17,26 +17,27 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
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 ForceDischargePower { get; set; }
public Double MaxInverterPower { get; set; }
public Double GridSetPoint { get; set; } public Double GridSetPoint { get; set; }
public Double SelfDischargePower { get; set; } public Double BatterySelfDischargePower { get; set; }
public Double HoldSocZone { get; set; } public Double HoldSocZone { get; set; }
public Double ControllerPConstant { 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() 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,
GridSetPoint = 0.0,
SelfDischargePower = 200, // TODO: multiple batteries
HoldSocZone = 1, // TODO: find better name, HoldSocZone = 1, // TODO: find better name,
ControllerPConstant = 0.5 ControllerPConstant = 0.5,
MinDcBusVoltage = 730,
ReferenceDcBusVoltage = 750,
MaxDcBusVoltage = 770,
}; };