add day and time for calibration in config

This commit is contained in:
atef 2024-03-15 11:35:03 +01:00
parent 4c7bc55526
commit d78add2f6c
1 changed files with 6 additions and 2 deletions

View File

@ -11,11 +11,13 @@ namespace InnovEnergy.App.SaliMax.SystemConfig;
public class Config //TODO: let IE choose from config files (Json) and connect to GUI
{
private static String DefaultConfigFilePath => Path.Combine(Environment.CurrentDirectory, "config.json");
private static DateTime DefaultDatetime => new(2024, 03, 11, 09, 00, 00);
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
public required Double MinSoc { get; set; }
public required CalibrationChargeType ForceCalibrationCharge { get; set; }
public required DateTime DayAndTimeForCalibration { get; set; }
public required Boolean DisplayIndividualBatteries { get; set; }
public required Double PConstant { get; set; }
public required Double GridSetPoint { get; set; }
@ -41,6 +43,7 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
{
MinSoc = 20,
ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery,
DayAndTimeForCalibration = DefaultDatetime,
DisplayIndividualBatteries = false,
PConstant = .5,
GridSetPoint = 0,
@ -118,6 +121,7 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
{
MinSoc = 20,
ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery,
DayAndTimeForCalibration = DefaultDatetime,
DisplayIndividualBatteries = false,
PConstant = .5,
GridSetPoint = 0,