|
|
@ -34,9 +34,10 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
public bool ManualSwapSuccFlag { get; set; } = false;
|
|
|
|
public bool ManualSwapSuccFlag { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
|
|
//手动确认解锁/上锁成功
|
|
|
|
//手动确认解锁/上锁成功
|
|
|
|
public bool ManualConfirmCarOperateFlag { get; set; }
|
|
|
|
public bool ManualConfirmCarUnlockFlag { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//手动确认解锁/上锁成功
|
|
|
|
|
|
|
|
public bool ManualConfirmCarLockFlag { get; set; }
|
|
|
|
public OperateModel OperateModel = null;
|
|
|
|
public OperateModel OperateModel = null;
|
|
|
|
|
|
|
|
|
|
|
|
public readonly LedTool? LedTool = null;
|
|
|
|
public readonly LedTool? LedTool = null;
|
|
|
@ -280,6 +281,23 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool ManualConfirmLockCar()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ManualConfirmCarLockFlag = true;
|
|
|
|
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
|
|
|
|
Log.Info($"ManualConfirmLockCar ok");
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public bool ManualConfirmUnLockCar()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ManualConfirmCarUnlockFlag = true;
|
|
|
|
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
|
|
|
|
Log.Info($"ManualConfirmLockCar ok");
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void ResetData()
|
|
|
|
private void ResetData()
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -305,8 +323,8 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
PlcSwapFlag = false;
|
|
|
|
PlcSwapFlag = false;
|
|
|
|
ManualSwapSuccFlag = false;
|
|
|
|
ManualSwapSuccFlag = false;
|
|
|
|
OperateModel = null;
|
|
|
|
OperateModel = null;
|
|
|
|
ManualConfirmCarOperateFlag = false;
|
|
|
|
ManualConfirmCarUnlockFlag = false;
|
|
|
|
|
|
|
|
ManualConfirmCarLockFlag = false;
|
|
|
|
CancelFlag = false;
|
|
|
|
CancelFlag = false;
|
|
|
|
StopFlag = false;
|
|
|
|
StopFlag = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|