EndCondition in transition steps is checked. Transition steps are finished when tank is empty.

This commit is contained in:
Milan Hanajik
2015-05-22 12:31:10 +02:00
parent edb6d5e8b6
commit edf35edfba
6 changed files with 122 additions and 12 deletions
@@ -104,6 +104,11 @@ namespace TBF.BenchControl.MettlerToledo.Standard
log.FatalFormat("Successfully initialized device {0}", ToString());
}
public bool IsEmpty()
{
return (this.mass <= balanceCfg.Empty);
}
public bool IsEmpty(float mass)
{
return (mass <= balanceCfg.Empty);