Change from falg to requested

This commit is contained in:
atef 2023-09-01 14:14:34 +02:00
parent 9bbccfd34b
commit 26422284dd
3 changed files with 13 additions and 13 deletions

View File

@ -209,7 +209,7 @@ public static class Controller
// no need to return false in case of EOC reached // no need to return false in case of EOC reached
// because the BMS will set the Time Since TOC to 0 as soon a battery reach EOC // because the BMS will set the Time Since TOC to 0 as soon a battery reach EOC
// then Calibration Charge flag will be set false by the software // then Calibration Charge flag will be set false by the software
return statusRecord.Battery.CalibrationChargeFlag; return statusRecord.Battery.CalibrationChargeRequested;
} }

View File

@ -36,7 +36,7 @@ public partial class Battery48TlRecord
public DcPower HeatingPower => HeatingCurrent * Dc.Voltage; public DcPower HeatingPower => HeatingCurrent * Dc.Voltage;
public Boolean CalibrationChargeFlag => TimeSinceTOC > OneWeekInMinutes; public Boolean CalibrationChargeRequested => TimeSinceTOC > OneWeekInMinutes;
public readonly struct Leds_ public readonly struct Leds_
{ {

View File

@ -15,7 +15,7 @@ public class Battery48TlRecords
public required Temperature Temperature { get; init; } public required Temperature Temperature { get; init; }
public required DcPower HeatingPower { get; init; } public required DcPower HeatingPower { get; init; }
public required UInt16 TimeSinceToc { get; init; } public required UInt16 TimeSinceToc { get; init; }
public required Boolean CalibrationChargeFlag { get; init; } public required Boolean CalibrationChargeRequested { get; init; }
public required IReadOnlyList<Battery48TlRecord> Devices { get; init; } public required IReadOnlyList<Battery48TlRecord> Devices { get; init; }
@ -35,7 +35,7 @@ public class Battery48TlRecords
Temperature = records.Average(b => b.Temperatures.Cells.Average.Value), Temperature = records.Average(b => b.Temperatures.Cells.Average.Value),
HeatingPower = records.Sum(b => b.HeatingPower), HeatingPower = records.Sum(b => b.HeatingPower),
TimeSinceToc = records.Max(r => r.TimeSinceTOC), TimeSinceToc = records.Max(r => r.TimeSinceTOC),
CalibrationChargeFlag = records.Any(r => r.CalibrationChargeFlag), CalibrationChargeRequested = records.Any(r => r.CalibrationChargeRequested),
Dc = new() Dc = new()
{ {