Commit ba2b3389 张东亮

料盘厚度限制采用配置

1 个父辈 170fc976
...@@ -118,5 +118,6 @@ namespace OnlineStore.Common ...@@ -118,5 +118,6 @@ namespace OnlineStore.Common
/// 禁用光栅 /// 禁用光栅
/// </summary> /// </summary>
public static string DisSecurityAccess = "DisSecurityAccess"; public static string DisSecurityAccess = "DisSecurityAccess";
public static string HeightLimit = "HeightLimit";
} }
} }
...@@ -542,7 +542,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -542,7 +542,8 @@ namespace OnlineStore.DeviceLibrary
} }
//如果检测出<=15,都按照8计算 //如果检测出<=15,都按照8计算
if (height <= 15) int heightLimit = ConfigAppSettings.GetIntValue(Setting_Init.HeightLimit, 13);
if (height <= heightLimit)
{ {
LastHeight = 8; LastHeight = 8;
} }
...@@ -554,7 +555,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -554,7 +555,7 @@ namespace OnlineStore.DeviceLibrary
foreach (int h in heightList) foreach (int h in heightList)
{ {
//取差值最小的接近值 //取差值最小的接近值
float cha = Math.Abs(h - (height - 4)); float cha = Math.Abs(h - (height));
if (cha < minCha) if (cha < minCha)
{ {
LastHeight = h; LastHeight = h;
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!