Esempio n. 1
0
        /// <summary>
        /// 相同地标的AGV地图上分开距离
        /// </summary>
        private static void InitAgvMapSpan()
        {
            foreach (AGV agv in AGVS)
            {
                if (agv.IsAlive && agv.IsAgvDev)
                {//在线停止中
                    ModuleControl.AddAgvToMapNew(agv.IsAlive, agv.Name, agv.Site, agv.Point, GetRate(agv.Site + ""));
                }

                if (ConstBA.IsShow_OffLineAGV && !agv.IsAlive && agv.IsAgvDev)
                {//显示离线AGV
                    ModuleControl.AddAgvToMapNew(agv.IsAlive, agv.Name, agv.Site, agv.Point, GetRate(agv.Site + ""));
                }
            }
            ConstBA.Init_ShowLineAGV = false;
        }
Esempio n. 2
0
 public static void UpdateAgvMap()
 {
     foreach (AGV agv in AGVS)
     {
         if (agv.IsAlive && agv.IsAgvDev && agv.IsRunning)
         {                                                                               //在线运动中
             ModuleControl.UpdateAgvSiteNew(agv.IsAlive, agv.Name, agv.Site, agv.Point); //走动
         }
         else if (agv.IsAlive && agv.IsAgvDev && !agv.IsRunning)
         {//在线停止中
             ModuleControl.AddAgvToMapNew(agv.IsAlive, agv.Name, agv.Site, agv.Point, 0);
         }
         else if (ConstBA.IsShow_OffLineAGV && !agv.IsAlive && agv.IsAgvDev)
         {//显示离线AGV
             ModuleControl.AddAgvToMapNew(agv.IsAlive, agv.Name, agv.Site, agv.Point, 0);
         }
         else if (!ConstBA.IsShow_OffLineAGV && !agv.IsAlive && agv.IsAgvDev)
         {//移除离线AGV
             ModuleControl.RemoveAgvModule(agv.Name);
         }
     }
 }