Uni.RegValve function simplified, IFlowMeter includes functions from IIDrawingItCmpntWithMeasuredVal, ver. 3.1.1627
This commit is contained in:
@@ -15,12 +15,11 @@ namespace TBF.Rig.Dummy.FlowMeter
|
||||
public override string ToString() { return string.Format("FlowMeter({0})", Cfg.ToString(1)); }
|
||||
|
||||
readonly FlowMeterCfg flowMeterCfg;
|
||||
public IDrawingItem DrawingItem { get { return flowMeterCfg as IDrawingItem; } }
|
||||
|
||||
public double NominalFlow { get { return flowMeterCfg.NominalFlow; } }
|
||||
|
||||
public double LtrPerPulse { get { return flowMeterCfg.NominalFlow / 7200.0f; } }
|
||||
|
||||
public IDrawingItem DrawingItem { get { return flowMeterCfg as IDrawingItem; } }
|
||||
|
||||
public double LtrPerPulseCorrected(double flow, int rangeIx)
|
||||
{
|
||||
return flow;
|
||||
@@ -28,6 +27,10 @@ namespace TBF.Rig.Dummy.FlowMeter
|
||||
|
||||
public int Idx1 { get { return 1; } }
|
||||
|
||||
public bool MsrmntAvailable { get { return true; } }
|
||||
public double MeasuredVal { get { return 1.234; } }
|
||||
public string AltString { get { return "dummy"; } }
|
||||
|
||||
|
||||
public FlowMeter()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user