雷达扫描到车辆驶入添加小步状态

zw
CZ 4 months ago
parent b188664df9
commit 2f0be3c8cd

@ -152,6 +152,12 @@ public class StationReadyState : IState
machine.ExceptionReason = ExceptionReason.None; machine.ExceptionReason = ExceptionReason.None;
_log.Info("entrance radar true"); _log.Info("entrance radar true");
machine.RadarInFlag = true; machine.RadarInFlag = true;
//添加小步状态
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.Idel,
machine);
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag,
machine);
} }
}, () => { }, true, () => { }, 2, InvokeStatus.TimeOut); }, () => { }, true, () => { }, 2, InvokeStatus.TimeOut);
} }
@ -234,10 +240,6 @@ public class StationReadyState : IState
//新增换电订单 //新增换电订单
machine.SwapOrder = _CommonMgr.SaveOrder(BuildOrder(machine.RfidReadModel)); machine.SwapOrder = _CommonMgr.SaveOrder(BuildOrder(machine.RfidReadModel));
//新增小步 //新增小步
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.Idel,
machine);
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag,
machine);
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RfidReadFlag, _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RfidReadFlag,
machine); machine);
RfidApi.StopRead(); RfidApi.StopRead();

Loading…
Cancel
Save