浏览代码

add slopfocusparam algorithm.

gsp 3 年之前
父节点
当前提交
2b540d3a82
共有 1 个文件被更改,包括 7 次插入1 次删除
  1. 7 1
      OTSIncAMeasureApp/0-OTSModel/Measure/3-MeasureFlow/CSmplMeasure.cs

+ 7 - 1
OTSIncAMeasureApp/0-OTSModel/Measure/3-MeasureFlow/CSmplMeasure.cs

@@ -466,7 +466,13 @@ namespace OTSModelSharp
                 }
                 }
             }
             }
             log.Info("Begin to move SEM stage to " + a_SEMpt.X + "," + a_SEMpt.Y);
             log.Info("Begin to move SEM stage to " + a_SEMpt.X + "," + a_SEMpt.Y);
-          
+            CSampleParam pMsrParam = m_Sample.GetMsrParams();
+            if (pMsrParam.SlopParam.IsUsingSlopParam)
+            {
+                double wd = pMsrParam.SlopParam.GetWD(a_SEMpt);
+
+                pSEMController.SetWorkingDistance(wd);
+            }
             // move SEM to the position (rotation 0)
             // move SEM to the position (rotation 0)
             if (!pSEMController.MoveSEMToPoint(a_SEMpt))
             if (!pSEMController.MoveSEMToPoint(a_SEMpt))
             {
             {