diff --git a/csharp/App/SaliMax/src/Program.cs b/csharp/App/SaliMax/src/Program.cs index 412dabe57..75b6c90a2 100644 --- a/csharp/App/SaliMax/src/Program.cs +++ b/csharp/App/SaliMax/src/Program.cs @@ -33,8 +33,6 @@ internal static class Program { [DllImport("libsystemd.so.0")] private static extern Int32 sd_notify(Int32 unsetEnvironment, String state); - - const String batteryTty = "/dev/ttyUSB0"; private static readonly UnixTimeSpan UpdateInterval = UnixTimeSpan.FromSeconds(2); diff --git a/csharp/App/SaliMax/src/SystemConfig/Config.cs b/csharp/App/SaliMax/src/SystemConfig/Config.cs index a0562ad16..c096ca5aa 100644 --- a/csharp/App/SaliMax/src/SystemConfig/Config.cs +++ b/csharp/App/SaliMax/src/SystemConfig/Config.cs @@ -43,19 +43,23 @@ public class Config //TODO: let IE choose from config files (Json) and connect t #if DEBUG public static Config Default => new() { - MinSoc = 20, - LastEoc = UnixTime.Epoch, // TODO: remove, use new LastEoc feature from BMS - PConstant = .5, - GridSetPoint = 0, - BatterySelfDischargePower = 200, - HoldSocZone = 1, // TODO: find better name, - MinDcBusVoltage = 690, - ReferenceDcBusVoltage = 750, - MaxDcBusVoltage = 810, - LowerDcBusVoltageWindow = 50, - ReferenceDcBusVoltageWindow = 750, - UpperDcBusVoltageWindow = 50, - Devices = new () + MinSoc = 20, + LastEoc = UnixTime.Epoch, // TODO: remove, use new LastEoc feature from BMS + PConstant = .5, + GridSetPoint = 0, + BatterySelfDischargePower = 200, + HoldSocZone = 1, // TODO: find better name, + MinDcLinkVoltageFromAcDc = 690, + ReferenceDcLinkVoltageFromAcDc = 750, + MaxDcLinkVoltageFromAcDc = 810, + LowerDcLinkVoltageFromDc = 50, + ReferenceDcLinkVoltageFromDc = 750, + UpperDcLinkVoltageFromDc = 50, + MaxBatteryChargingCurrent = 210, + MaxBatteryDischargingCurrent = 210, + MaxChargeBatteryVoltage = 57, + MinDischargeBatteryVoltage = 0, + Devices = new () { TruConvertAcIp = new() { Host = "localhost", Port = 5001}, TruConvertDcIp = new() { Host = "localhost", Port = 5002},