add day and time for calibration in config
This commit is contained in:
parent
4c7bc55526
commit
d78add2f6c
|
@ -11,11 +11,13 @@ namespace InnovEnergy.App.SaliMax.SystemConfig;
|
||||||
public class Config //TODO: let IE choose from config files (Json) and connect to GUI
|
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 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 };
|
private static readonly JsonSerializerOptions JsonOptions = new() { WriteIndented = true };
|
||||||
|
|
||||||
public required Double MinSoc { get; set; }
|
public required Double MinSoc { get; set; }
|
||||||
public required CalibrationChargeType ForceCalibrationCharge { get; set; }
|
public required CalibrationChargeType ForceCalibrationCharge { get; set; }
|
||||||
|
public required DateTime DayAndTimeForCalibration { get; set; }
|
||||||
public required Boolean DisplayIndividualBatteries { get; set; }
|
public required Boolean DisplayIndividualBatteries { get; set; }
|
||||||
public required Double PConstant { get; set; }
|
public required Double PConstant { get; set; }
|
||||||
public required Double GridSetPoint { get; set; }
|
public required Double GridSetPoint { get; set; }
|
||||||
|
@ -40,7 +42,8 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
|
||||||
public static Config Default => new()
|
public static Config Default => new()
|
||||||
{
|
{
|
||||||
MinSoc = 20,
|
MinSoc = 20,
|
||||||
ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery,
|
ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery,
|
||||||
|
DayAndTimeForCalibration = DefaultDatetime,
|
||||||
DisplayIndividualBatteries = false,
|
DisplayIndividualBatteries = false,
|
||||||
PConstant = .5,
|
PConstant = .5,
|
||||||
GridSetPoint = 0,
|
GridSetPoint = 0,
|
||||||
|
@ -118,6 +121,7 @@ public class Config //TODO: let IE choose from config files (Json) and connect t
|
||||||
{
|
{
|
||||||
MinSoc = 20,
|
MinSoc = 20,
|
||||||
ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery,
|
ForceCalibrationCharge = CalibrationChargeType.RepetitivelyEvery,
|
||||||
|
DayAndTimeForCalibration = DefaultDatetime,
|
||||||
DisplayIndividualBatteries = false,
|
DisplayIndividualBatteries = false,
|
||||||
PConstant = .5,
|
PConstant = .5,
|
||||||
GridSetPoint = 0,
|
GridSetPoint = 0,
|
||||||
|
|
Loading…
Reference in New Issue