Commit e5bb4115 LN

bug修改

1 个父辈 8908ee2e
...@@ -207,8 +207,7 @@ namespace HuichuanLibrary ...@@ -207,8 +207,7 @@ namespace HuichuanLibrary
public static bool IsInPosition(short axisNo, double targetPos, double maxError = 10) public static bool IsInPosition(short axisNo, double targetPos, double maxError = 10)
{ {
double currP = GetAxisCurrPos(axisNo); double currP = GetAxisCurrPos(axisNo);
double chazhi = Math.Abs(Math.Abs(currP) - Math.Abs(targetPos));
double chazhi = Math.Abs(currP - targetPos);
if (chazhi < maxError) if (chazhi < maxError)
{ {
return true; return true;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!