Koncim: IBox, etc.

This commit is contained in:
Milan Hanajik
2014-07-31 17:04:09 +02:00
parent 9a9a09f16d
commit 66feec63de
43 changed files with 749 additions and 287 deletions
@@ -99,7 +99,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
}
while (!e.Contains(Event.BalanceDone));
float estimatedEndMass = mass.F + test.Volume;
float estimatedEndMass = mass.Val + test.Volume;
if (estimatedEndMass < outPath.Balance.Capacity * Constants.TankFullFactor)
{
goto set_flow; /// Enough room in the tank -> skip emptying
@@ -146,7 +146,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
flow_set:
int time = StateMachine.CurrentTime;
float currentFlow = measuredFlow.F;
float currentFlow = measuredFlow.Val;
/// Extract cameras from the current sensors path, add operations to the detection state
IList<IOperation> measureOperations = new List<IOperation>();
@@ -173,8 +173,8 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
while (!e.Contains(Event.BalanceDone));
tstRslt.TimeStart = DateTime.Now;
tstRslt.MassStartRaw = stableMass.F;
mass.F = stableMass.F;
tstRslt.MassStartRaw = stableMass.Val;
mass.Val = stableMass.Val;
//------------------------------------------------
Bridge.OnActivity(this, Strings.Test_in_progress);
@@ -215,25 +215,25 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
if (firstTime)
{
firstTime = false; /// Do the following only once
tstRslt.TempInStart = tempIn.F;
tstRslt.TempOutStart = tempOut.F;
tstRslt.TempDivStart = tempDiv.F;
tstRslt.PressInStart = pressIn.F;
tstRslt.PressOutStart = pressOut.F;
tstRslt.TempInStart = tempIn.Val;
tstRslt.TempOutStart = tempOut.Val;
tstRslt.TempDivStart = tempDiv.Val;
tstRslt.PressInStart = pressIn.Val;
tstRslt.PressOutStart = pressOut.Val;
}
tstRslt.TempInEnd = tempIn.F;
tstRslt.TempOutEnd = tempOut.F;
tstRslt.TempDivEnd = tempDiv.F;
tstRslt.PressInEnd = pressIn.F;
tstRslt.PressOutEnd = pressOut.F;
tstRslt.MassEndRaw = mass.F;
tstRslt.TempInEnd = tempIn.Val;
tstRslt.TempOutEnd = tempOut.Val;
tstRslt.TempDivEnd = tempDiv.Val;
tstRslt.PressInEnd = pressIn.Val;
tstRslt.PressOutEnd = pressOut.Val;
tstRslt.MassEndRaw = mass.Val;
AccumulateAveragedData();
tstRslt.AmbientTempAve = airTemperature.F;
tstRslt.AmbientPressAve = airPressure.F;
tstRslt.AmbientHumiAve = airHumidity.F;
tstRslt.AmbientTempAve = airTemperature.Val;
tstRslt.AmbientPressAve = airPressure.Val;
tstRslt.AmbientHumiAve = airHumidity.Val;
string logstr = string.Format("E={0} f={1} q={2}", cBrd.EtPulses(0), cBrd.ReferenceFreq,
@@ -268,7 +268,7 @@ namespace TBF.BenchControl.TestMethods.FlyingStartCollectionMethod
}
while (!e.Contains(Event.BalanceDone));
///
tstRslt.MassEndRaw = stableMass.F;
tstRslt.MassEndRaw = stableMass.Val;
tstRslt.TimeEnd = DateTime.Now;
//------------------------------------------------