Explorar o código

fix bug in SEMFPlaceRoutine

zhouhr hai 1 ano
pai
achega
6e3aa49351
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      Venus/Venus_RT/Modules/TM/VenusEntity/SEMFPlaceRoutine.cs

+ 4 - 1
Venus/Venus_RT/Modules/TM/VenusEntity/SEMFPlaceRoutine.cs

@@ -217,7 +217,10 @@ namespace Venus_RT.Modules.TM.VenusEntity
 
         private bool Placing()
         {
-            return _robot.Place(VCE2LP.QueryLP2VCE(_targetModule), 0, _hand);
+            if(ModuleHelper.IsLoadPort(_targetModule))
+                return _robot.Place(VCE2LP.QueryLP2VCE(_targetModule), 0, _hand);
+            else
+                return _robot.Place(_targetModule, 0, _hand);
         }
 
         private bool CheckModuleReady()