wyq 1 년 전
부모
커밋
08ffd96362
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      XdCxRhDW.App/UserControl/CtrlHome.cs

+ 4 - 4
XdCxRhDW.App/UserControl/CtrlHome.cs

@@ -979,18 +979,18 @@ namespace XdCxRhDW.App.UserControl
                     DxHelper.MsgBoxHelper.ShowWarning($"未找到定位相关的测向[{item.CxResID.Value}]信息");
                     return;
                 }
-                var satTx = listTx.Find(p => p.TxType == EnumTxType.MainSat);
+                var satTx = listTx.Find(p => p.TxType == EnumTxType.Cx);
                 if (satTx == null)
                 {
-                    DxHelper.MsgBoxHelper.ShowWarning($"主星天线信息为空!");
+                    DxHelper.MsgBoxHelper.ShowWarning($"测向站信息为空!");
                     return;
                 }
 
                 double startdeg = 90;
                 double deg = cx.Fx - startdeg;//向东方向
-                //计算接收站到定位点之间的距离
+                //计算测向站到定位点之间的距离
                 var km = MapControlEx.CalcLineKm(satTx.Lon, satTx.Lat, item.PosLon, item.PosLat);
-                var endpoint = MapControlEx.CalcSituation(satTx.Lon, satTx.Lat, deg, km * 1000);
+                var endpoint = MapControlEx.CalcSituation(satTx.Lon, satTx.Lat, deg, (km+100) * 1000);
                 List<(double, double)> points = new List<(double, double)>();
                 points.Add((satTx.Lon, satTx.Lat));
                 points.Add((endpoint.Item1, endpoint.Item2));