|
|
@ -24,6 +24,8 @@ public class ManualSuccState : IState
|
|
|
|
public StateResult Handle(SwappingStateMachine machine)
|
|
|
|
public StateResult Handle(SwappingStateMachine machine)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_log.Info($"'goto ManualSucc");
|
|
|
|
_log.Info($"'goto ManualSucc");
|
|
|
|
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
machine.ManualSwapSuccFlag = false;
|
|
|
|
machine.ManualSwapSuccFlag = false;
|
|
|
|
if (machine.SwapOrderBatteryInfo.swapAmtOrder != null)
|
|
|
|
if (machine.SwapOrderBatteryInfo.swapAmtOrder != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -47,6 +49,13 @@ public class ManualSuccState : IState
|
|
|
|
Reason = machine.OperateModel.Reason,
|
|
|
|
Reason = machine.OperateModel.Reason,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
machine.Reset();
|
|
|
|
machine.Reset();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch (Exception e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
machine.Reset();
|
|
|
|
|
|
|
|
_log.Error($"ManualSuccState err={e}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return new StateResult()
|
|
|
|
return new StateResult()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SwappingState = SwappingState.StationReady
|
|
|
|
SwappingState = SwappingState.StationReady
|
|
|
|