Uni.FlowMetersInParallel enabled, CB.Uni.OutputMessage supports parallel flow meters, etc, ver. 3.1.1794
This commit is contained in:
@@ -48,7 +48,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
/// Command
|
||||
message[4] = GetCommand(action);
|
||||
message[5] = action.IsStart() ? GetStartParams(action) : action.IsStop() ? GetStopParams(action) : (byte)0;
|
||||
message[6] = (arguments.DivId <= 0) ? (byte)0 : (byte)(arguments.DivId - 1);
|
||||
message[6] = (byte)(((arguments.DivId <= 0) ? 0 : (arguments.DivId - 1)) + ((arguments.FlowMId > 7) ? arguments.FlowMId : 0));
|
||||
|
||||
int totalPulsesCount = (arguments.TotalPulsesCount < 0) ? 0 : arguments.TotalPulsesCount;
|
||||
message[7] = (byte)(totalPulsesCount & 0xFF);
|
||||
@@ -130,7 +130,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
|
||||
static byte GetStartParams(Action action)
|
||||
{
|
||||
int param = action.FlowMId & (int)StartParam.EtalonMask;
|
||||
int param = (action.FlowMId <= 7) ? action.FlowMId : 0;
|
||||
|
||||
if (action.IsDivUsed) param |= (int)StartParam.DiverterStart;
|
||||
if (action.IsSyncMethod) param |= (int)StartParam.SynchroMethod;
|
||||
|
||||
Reference in New Issue
Block a user