SetFlowOp with 'delay' parameter (default 0), flow setting starts after this delay in sec.

This commit is contained in:
Milan Hanajik
2022-01-28 14:43:42 +01:00
parent ecc92176f3
commit 851c51aa7c
15 changed files with 94 additions and 73 deletions
+6 -1
View File
@@ -419,8 +419,13 @@ namespace TBF.Rig.ControlBoard.Papouch
/// <param name="reqrdFlowHi">Upper limit</param>
/// <param name="measuredFlow">Reference to a box for the measured flow or null</param>
/// <param name="timeout">Flow set timeout</param>
/// <param name="delay">Flow setting starts after this delay [s]</param>
/// <returns>Operation</returns>
public IOperation SetFlowOp(double reqrdFlowLo, double reqrdFlowHi, TBF.Boxes.DoubleBox measuredFlow, int timeout)
public IOperation SetFlowOp(double reqrdFlowLo, double reqrdFlowHi, DoubleBox measuredFlow, int timeout)
{
return SetFlowOp(reqrdFlowLo, reqrdFlowHi, measuredFlow, timeout, 0);
}
public IOperation SetFlowOp(double reqrdFlowLo, double reqrdFlowHi, DoubleBox measuredFlow, int timeout, int delay)
{
string loLimStr = reqrdFlowLo.ToString(Common.Utils.SignificantDigitsToFmt(reqrdFlowLo, 2));
string hiLimStr = reqrdFlowHi.ToString(Common.Utils.SignificantDigitsToFmt(reqrdFlowHi, 2));