Commit 2405e849 张东亮

停用上报

1 个父辈 f03add52
...@@ -153,18 +153,24 @@ namespace AGVControl.BLL ...@@ -153,18 +153,24 @@ namespace AGVControl.BLL
{ {
try try
{ {
if (!CheckOnline(i)) continue; if (CheckOnline(i))
bool change = false; {
Common.mir.Get_Task_State(Common.agvInfo[i].CurTaskID, out string stateStr); bool change = false;
Thread.Sleep(50); Common.mir.Get_Task_State(Common.agvInfo[i].CurTaskID, out string stateStr);
//获取AGV状态 Thread.Sleep(50);
rtn = Common.mir.Get_State(Common.agvInfo[i], out eAGVState stateID, out string stateText, out int battery, out string mission_text, out Agv_Info.clsPosition position); //获取AGV状态
Thread.Sleep(50); rtn = Common.mir.Get_State(Common.agvInfo[i], out eAGVState stateID, out string stateText, out int battery, out string mission_text, out Agv_Info.clsPosition position);
change = Common.agvInfo[i].SetState(stateID, stateStr, battery, mission_text, position); Thread.Sleep(50);
change = Common.agvInfo[i].SetState(stateID, stateStr, battery, mission_text, position);
// if (change) // if (change)
{
AgvChanged?.Invoke(i);
}
}
else
{ {
AgvChanged?.Invoke(i); Common.agvInfo[i].UpdateDisplayBoard();
} }
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -431,7 +431,7 @@ namespace AGVControl ...@@ -431,7 +431,7 @@ namespace AGVControl
} }
} }
private void UpdateDisplayBoard() public void UpdateDisplayBoard()
{ {
bool isAlarm = false; bool isAlarm = false;
List<AlarmMsg> msglist = new List<AlarmMsg>(); List<AlarmMsg> msglist = new List<AlarmMsg>();
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!