|
@@ -24,6 +24,8 @@ namespace XdCxRhDW.App.UserControl
|
|
|
DtousErr = Convert.ToDouble(txtDtousErr1.Text),
|
|
|
SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
|
|
|
};
|
|
|
+
|
|
|
+ private EnumPosResType PosResType;
|
|
|
public X2D1GDOPParam(PosRes item)
|
|
|
{
|
|
|
InitializeComponent();
|
|
@@ -38,6 +40,12 @@ namespace XdCxRhDW.App.UserControl
|
|
|
List<string> xlall = new List<string>();
|
|
|
string mainTle = string.Empty;
|
|
|
string adjaTle = string.Empty;
|
|
|
+
|
|
|
+ PosResType = item.PosResType;
|
|
|
+ if (PosResType == EnumPosResType.X2D1NoRef)
|
|
|
+ {
|
|
|
+ layoutControlItem14.Visibility = DevExpress.XtraLayout.Utils.LayoutVisibility.Never;
|
|
|
+ }
|
|
|
using (RHDWContext db = new RHDWContext())
|
|
|
{
|
|
|
var sats = db.SatInfos.ToList();
|
|
@@ -75,6 +83,8 @@ namespace XdCxRhDW.App.UserControl
|
|
|
|
|
|
txtTleMain.UseDefault().SetStringData(xlall).Text = mainTle;
|
|
|
txtTleAdja.UseDefault().SetStringData(xlall).Text = adjaTle;
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
@@ -85,12 +95,9 @@ namespace XdCxRhDW.App.UserControl
|
|
|
|
|
|
var cdb = new double[] { Model.StationLon, Model.StationLat, 0 };
|
|
|
var refstation = new double[] { Model.RefLon, Model.RefLat, 0 };
|
|
|
+
|
|
|
var (listSat, data) = GdopHelper.Gdop2Sat1D(Model.TleMain, Model.TleAdja, Model.CapTime, cdb
|
|
|
- , Model.DtousErr, Model.SatLocErr, refstation);
|
|
|
- if (data == null)
|
|
|
- {
|
|
|
- return;
|
|
|
- }
|
|
|
+ , Model.DtousErr, Model.SatLocErr, PosResType == EnumPosResType.X2D1NoRef ? null : refstation);
|
|
|
foreach (var errLins in data)//画GDOP
|
|
|
{
|
|
|
var mapDots = errLins.MapDots.Select(p => p).Select(p => (p.Lon, p.Lat));
|
|
@@ -150,5 +157,10 @@ namespace XdCxRhDW.App.UserControl
|
|
|
/// </summary>
|
|
|
public double SatLocErr { get; set; } = 10000;
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 定位类型
|
|
|
+ /// </summary>
|
|
|
+ public EnumPosResType PosResType { get; set; }
|
|
|
+
|
|
|
}
|
|
|
}
|