Browse Source

add slopfocusparam algorithm.

gsp 3 years ago
parent
commit
2b540d3a82

+ 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);
-          
+            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)
             if (!pSEMController.MoveSEMToPoint(a_SEMpt))
             {