Explorar o código

新增RGV矫正偏差

林豪 左 %!s(int64=3) %!d(string=hai) anos
pai
achega
e9d77c6307

+ 2 - 0
Projects/永冠OPP/WCS.Service/Extensions/DeviceExtension.cs

@@ -612,6 +612,8 @@ namespace WCS.Service.Extensions
             //获取目标站台的设备组信息
             var station = Device.Find($"G{target}").Create<StationDeviceGroup>();
 
+            if (station.Distance(rgv) < 5000) return false;
+
             //当前RGV与目标站台的距离小于传入RGV到达目标站台的距离
             return (this.Distance(station) < rgv.Distance(station)) || station.CurrentRGV()?.Entity.CODE == this.Entity.CODE;
         }