|
|
@ -32,11 +32,12 @@ 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;
|
|
|
@ -279,6 +280,23 @@ public class SwappingStateMachine : IDisposable
|
|
|
|
Log.Info($"ManualSwapSuccFlag machine ok");
|
|
|
|
Log.Info($"ManualSwapSuccFlag machine ok");
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|