红绿灯指令增加

master
赵宝玉 1 month ago
parent 113b55c182
commit 56d831fb5c

@ -211,7 +211,7 @@ public class StationReadyState : IState
if (PadarMgr._PadarClient?.CarState == 6 || machine.ManualSkipRadar)
{
// PlcApi.Traffic(0);
PlcApi.Traffic(0);
LedClient.SendMsgByKey(InfoEnum.SwapInfo.diparkir.GetLed());
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.RadarInFlag,
machine,type: machine.ManualSkipRadar? (int)SwapConstant.StepType.MANUAL :(int)SwapConstant.StepType.AUTO);

@ -302,7 +302,7 @@ public class SwapDoneState : IState
machine.ExceptionReason = ExceptionReason.None;
_log.Info("exist radar true");
// PlcApi.Traffic(1);
PlcApi.Traffic(1);
//出口写红灯
//更新车辆离场时间,上报云平台
//machine.BusinessSwappingForCloudState =

@ -25,6 +25,7 @@ public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler<Batte
/// </summary>
protected override void ChannelRead0(IChannelHandlerContext ctx, BatteryStatusReportedReq msg)
{
// ctx.Channel.WriteAndFlushAsync(message: new Msg.Host.Req.WhetherChargedReq());
UpdateBinInfo(msg.granary01, "1");
UpdateBinInfo(msg.granary02, "2");
UpdateBinInfo(msg.granary03, "3");
@ -34,6 +35,7 @@ public class BatteryStatusReportedReqHandler : SimpleChannelInboundHandler<Batte
UpdateBinInfo(msg.granary07, "7");
UpdateBinInfo(msg.granary08, "8");
UpdateBinInfo(msg.granary09, "9");
}
private void UpdateBinInfo(int exists, string binNo)

@ -30,7 +30,7 @@ public class WhetherChargedReqHandler : SimpleChannelInboundHandler<WhetherCharg
/// </summary>
protected override void ChannelRead0(IChannelHandlerContext ctx, WhetherChargedReq msg)
{
Log.Info("Battery pack disassembly finish");
Log.Info("Sends the battery charge status");
}
}

Loading…
Cancel
Save