Reg. valve stop param, ver. 3.1.1626
This commit is contained in:
@@ -66,7 +66,7 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
message[29] = (byte)((action.RVMovePar1 >> 8) & 0xFF);
|
||||
message[30] = (byte)(action.RVMovePar2 & 0xFF);
|
||||
message[31] = (byte)((action.RVMovePar2 >> 8) & 0xFF);
|
||||
message[32] = action.IsStop() ? (byte)0x20 : action.IsStart() ? (byte)0x42 : (byte)0; /// ZStavReg
|
||||
message[32] = GetRVStopParam(action);
|
||||
|
||||
/// DA1
|
||||
message[33] = 0; /// PrudParL
|
||||
@@ -111,6 +111,13 @@ namespace TBF.Rig.ControlBoard.Uni
|
||||
{
|
||||
return (byte)StopDevs.All;
|
||||
}
|
||||
|
||||
static byte GetRVStopParam(Action action)
|
||||
{
|
||||
if (action.IsStop()) return (byte)0x20;
|
||||
if ((action.ActionId & ActionID.RegVlvStop) != 0) return (byte)0x20;
|
||||
return (byte)0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user