Bug-fixes in FlyingStart and FlyingStartMassCollection heat meters, T ref warm and T ref cold statistics, ver. 2.10.362

This commit is contained in:
Milan Hanajik
2016-10-12 01:23:38 +02:00
parent 2057cc6b73
commit dddfc4bed5
8 changed files with 209 additions and 49 deletions
@@ -82,6 +82,8 @@ namespace TBF.BenchControl.Sequences
public static Statistics PressureDownStat = new Statistics();
public static Statistics RefFlowStat = new Statistics();
public static Statistics TempRefWarmStat = new Statistics();
public static Statistics TempRefColdStat = new Statistics();
public static Statistics Energy = new Statistics();
public static Statistics VolumeForEnergy = new Statistics();
public static int lastEnergyUpdateTime;
@@ -98,6 +100,8 @@ namespace TBF.BenchControl.Sequences
PressureDownStat.Clear();
RefFlowStat.Clear();
TempRefWarmStat.Clear();
TempRefColdStat.Clear();
Energy.Clear();
VolumeForEnergy.Clear();
lastEnergyUpdateTime = 0;
@@ -114,6 +118,12 @@ namespace TBF.BenchControl.Sequences
PressureUpStat.Update(PressureUp);
PressureDownStat.Update(PressureDown);
RefFlowStat.Update(RefFlow);
if (BatchRslts.Batch.HeatMeter)
{
TempRefWarmStat.Update((TempRefWarm1.Val + TempRefWarm2.Val) / 2);
TempRefColdStat.Update((TempRefCold1.Val + TempRefCold2.Val) / 2);
}
}
}
}