Kaynağa Gözat

revise pick/place check precondition bug

chenzk 1 gün önce
ebeveyn
işleme
787f73f714

+ 2 - 2
PunkHPX8_RT/Modules/EFEM/EfemPickRoutine.cs

@@ -106,14 +106,14 @@ namespace PunkHPX8_RT.Modules.EFEM
             }
             if (ModuleHelper.IsPlatingCell(_targetModule))
             {
-                if (_hand == Hand.Blade2)
+                if (_hand == Hand.Blade1)
                 {
                     NotifyError(eEvent.ERR_EFEM_ROBOT, $"cannot use lower arm to pick from {_targetModule}", -1);
                     return false;
                 }
             }
 
-            if (_hand == Hand.Blade1 && _flip == Flip.Flip)
+            if (_hand == Hand.Blade1 && _flip == Flip.Upper)
             {
                 NotifyError(eEvent.ERR_EFEM_ROBOT, $"lower arm cannot flip", -1);
                 return false;

+ 2 - 2
PunkHPX8_RT/Modules/EFEM/EfemPlaceRoutine.cs

@@ -82,7 +82,7 @@ namespace PunkHPX8_RT.Modules.EFEM
         {
             if (ModuleHelper.IsDummy(_targetModule) || ModuleHelper.IsAligner(_targetModule) || ModuleHelper.IsLoadPort(_targetModule))
             {
-                if (_hand == Hand.Blade1)
+                if (_hand == Hand.Blade2)
                 {
                     NotifyError(eEvent.ERR_EFEM_ROBOT, $"cannot use upper arm to place to {_targetModule}", -1);
                     return false;
@@ -96,7 +96,7 @@ namespace PunkHPX8_RT.Modules.EFEM
                     return false;
                 }
             }
-            if (_hand == Hand.Blade1 && _flip == Flip.Flip)
+            if (_hand == Hand.Blade1 && _flip == Flip.Upper)
             {
                 NotifyError(eEvent.ERR_EFEM_ROBOT, $"lower arm cannot flip", -1);
                 return false;