|
|
@ -140,6 +140,7 @@ public class StationReadyState : IState
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.CarInInfo);
|
|
|
|
machine.ExceptionReason = ExceptionReason.None;
|
|
|
|
machine.ExceptionReason = ExceptionReason.None;
|
|
|
|
_log.Info("entrance radar true");
|
|
|
|
_log.Info("entrance radar true");
|
|
|
|
machine.RadarInFlag = true;
|
|
|
|
machine.RadarInFlag = true;
|
|
|
@ -169,7 +170,7 @@ public class StationReadyState : IState
|
|
|
|
// machine.LedTool.WriteProgramContent(InfoEnum.SwapInfo.ErrorReadRfid.GetLed());
|
|
|
|
// machine.LedTool.WriteProgramContent(InfoEnum.SwapInfo.ErrorReadRfid.GetLed());
|
|
|
|
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorReadRfid);
|
|
|
|
SoundTool.PlayOneSound((int)InfoEnum.SwapInfo.ErrorReadRfid);
|
|
|
|
}, false, () => { machine.ExceptionReason = ExceptionReason.ReadRfidError; }
|
|
|
|
}, false, () => { machine.ExceptionReason = ExceptionReason.ReadRfidError; }
|
|
|
|
, 1, InvokeStatus.TimeOut);
|
|
|
|
, 3, InvokeStatus.TimeOut);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -183,11 +184,11 @@ public class StationReadyState : IState
|
|
|
|
var statusDes =
|
|
|
|
var statusDes =
|
|
|
|
BaseEnumExtensions.GetEnumDescriptionByCode<StationConstant.StationStatus>(
|
|
|
|
BaseEnumExtensions.GetEnumDescriptionByCode<StationConstant.StationStatus>(
|
|
|
|
StaticStationInfo.StationStatus);
|
|
|
|
StaticStationInfo.StationStatus);
|
|
|
|
_log.Info($"换电站处于{statusDes}状态");
|
|
|
|
_log.Info($"站控处于{statusDes}状态");
|
|
|
|
var wayDes =
|
|
|
|
var wayDes =
|
|
|
|
BaseEnumExtensions.GetEnumDescriptionByCode<StationConstant.StationWay>(
|
|
|
|
BaseEnumExtensions.GetEnumDescriptionByCode<StationConstant.StationWay>(
|
|
|
|
StaticStationInfo.StationWay);
|
|
|
|
StaticStationInfo.StationWay);
|
|
|
|
_log.Info($"换电站处于{wayDes}模式");
|
|
|
|
_log.Info($"站控处于{wayDes}模式");
|
|
|
|
|
|
|
|
|
|
|
|
if (StationConstant.StationStatus.Run ==
|
|
|
|
if (StationConstant.StationStatus.Run ==
|
|
|
|
BaseEnumExtensions.GetEnumByCode<StationConstant.StationStatus>(StaticStationInfo.StationStatus)
|
|
|
|
BaseEnumExtensions.GetEnumByCode<StationConstant.StationStatus>(StaticStationInfo.StationStatus)
|
|
|
|