UniCB : Flow measurement start fixed, ver. 3.1.1608

This commit is contained in:
Milan Hanajik
2021-03-05 16:12:33 +01:00
parent 6cf3bd6160
commit e2a8d66e48
4 changed files with 31 additions and 23 deletions
+3 -6
View File
@@ -90,10 +90,7 @@ namespace TBF.Rig.ControlBoard.Uni
static byte GetCommand(Action action)
{
int command = 0;
if (action.IsStart()) command |= (int)Command.Start;
if (action.IsStop()) command |= (int)Command.Stop;
return (byte)command;
return (byte)action.StartStop;
}
static byte GetStartParams(Action action)
@@ -121,7 +118,7 @@ namespace TBF.Rig.ControlBoard.Uni
public enum Command : byte
{
RequestData = 0,
None = 0, /// Request data only
Start = 1,
Stop = 2,
GetDiverterTransitionData = 4,
@@ -135,7 +132,7 @@ namespace TBF.Rig.ControlBoard.Uni
EtalonMask = 0x07,
DiverterStart = 0x08,
SynchroMethod = 0x10,
DirectGateStart = 0x20, /// ???
DirectGateStart = 0x20, /// ???
StartStopMethod = 0x40,
CalibrationMode = 0x80,
}