void DrvWlConInit() { for (int i = 0; i < AGVNUM_MAX; i++) { AGVStatus[i] = new AGVCar(this,canvas); } DrvWlConWorkLineInit(); //生产区初始化,需要先初始化AGVStatus,然后再生产区初始化 if (GlobalPara.IsTrafficFun) { agvTrafficList = new AGVTrafficList(); agvTrafficList.Init();//交通管制路口初始化 } if (GlobalPara.IsDockFun) { agvDock = new AGVDock(); agvDock.Init(); } if (GlobalPara.IsChargeFun) { agvCharge = new AGVCharge(); agvCharge.Init(); } if (GlobalPara.IsCallFun) { agvCall = new AGVCall(); } }
void DrvWlConInit() { if (GlobalPara.IsTrafficFun) { agvTrafficList = new AGVTrafficList(); agvTrafficList.Init();//交通管制路口初始化 } if (GlobalPara.IsDockFun) { agvDock = new AGVDock(); agvDock.Init(); } if (GlobalPara.IsChargeFun) { agvCharge = new AGVCharge(); agvCharge.Init(); } if (GlobalPara.IsCallFun) { agvCall = new AGVCall(); } }