From 1eba6b331b582fae1a7703dcd9ace92e46a68466 Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 29 May 2024 13:21:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=B5=8B=E8=AF=95=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/Constant/InfoEnum.cs | 3 +++ Service/Execute/Step/StationReadyState.cs | 7 ++++--- Service/Service.csproj | 4 ---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Entity/Constant/InfoEnum.cs b/Entity/Constant/InfoEnum.cs index 99e9eed..71d6d88 100644 --- a/Entity/Constant/InfoEnum.cs +++ b/Entity/Constant/InfoEnum.cs @@ -41,7 +41,10 @@ public class InfoEnum [Info("换电站处于手动模式,不能自动换电","换电站处于手动模式,不能自动换电")] InfoStationModel, [Info("换电站处于本地模式,不能远程换电","换电站处于本地模式,不能远程换电")] InfoStationModelRemoteErr, + + [Info("车辆驶入","车辆驶入")] CarInInfo, } + public enum SelectBinStatusInfo : byte { diff --git a/Service/Execute/Step/StationReadyState.cs b/Service/Execute/Step/StationReadyState.cs index e006487..0c5a7fe 100644 --- a/Service/Execute/Step/StationReadyState.cs +++ b/Service/Execute/Step/StationReadyState.cs @@ -140,6 +140,7 @@ public class StationReadyState : IState } else { + SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.CarInInfo); machine.ExceptionReason = ExceptionReason.None; _log.Info("entrance radar true"); machine.RadarInFlag = true; @@ -169,7 +170,7 @@ public class StationReadyState : IState // machine.LedTool.WriteProgramContent(InfoEnum.SwapInfo.ErrorReadRfid.GetLed()); SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorReadRfid); }, false, () => { machine.ExceptionReason = ExceptionReason.ReadRfidError; } - , 1, InvokeStatus.TimeOut); + , 3, InvokeStatus.TimeOut); } /// @@ -183,11 +184,11 @@ public class StationReadyState : IState var statusDes = BaseEnumExtensions.GetEnumDescriptionByCode( StaticStationInfo.StationStatus); - _log.Info($"换电站处于{statusDes}状态"); + _log.Info($"站控处于{statusDes}状态"); var wayDes = BaseEnumExtensions.GetEnumDescriptionByCode( StaticStationInfo.StationWay); - _log.Info($"换电站处于{wayDes}模式"); + _log.Info($"站控处于{wayDes}模式"); if (StationConstant.StationStatus.Run == BaseEnumExtensions.GetEnumByCode(StaticStationInfo.StationStatus) diff --git a/Service/Service.csproj b/Service/Service.csproj index 5fabb68..2f92105 100644 --- a/Service/Service.csproj +++ b/Service/Service.csproj @@ -39,8 +39,4 @@ - - - -