Explorar el Código

星座GDOP和误差椭圆调用

cherry hace 1 año
padre
commit
5f3a1ce76b

+ 37 - 2
XzXdDw.App/UserControl/CtrlPosXz.cs

@@ -27,6 +27,7 @@ using XdCxRhDW.App.DTO;
 using XdCxRhDW.App.UserControl;
 using XzXdDw.App.Api;
 using XzXdDw.App.Api.低轨GDOP误差椭圆;
+using XzXdDw.App.Api.星地GDOP误差椭圆;
 using XzXdDw.App.EFContext;
 using XzXdDw.App.Model;
 
@@ -126,7 +127,41 @@ namespace XzXdDw.App.UserControl
                     .AddMapMenu("停止加载", SvgHelper.LoadFromFile("Image\\Stop.svg"), (lon, lat) => stoped = true)
                     .AddMapMenu("GDOP分析", SvgHelper.LoadFromFile("Image\\GDOP.svg"), (lon, lat) =>
                     {
-                       
+                        var ctrl = new XZGDOPParam();
+                        PopupHelper.ShowPopup(ctrl, mapControl1, mapControl1.Width / 4, onHide: hideReason =>
+                        {
+                            if (hideReason == HideReason.Defalut) return;
+                            var model = ctrl.Model;
+                            var (listSat, data) = GdopHelper.GdopLeoTowSatDRef(
+                              new double[] { model.RefLon, model.RefLat }, model.TleMain, model.TleAdja, model.CapTime, model.DtousErr,model.DfoErr, model.SatLocErr,model.EphVelErr,model.fu1,model.fu2);
+                            if (data == null)
+                            {
+                                return;
+                            }
+                            if (listSat != null)//画卫星
+                            {
+                                foreach (var sat in listSat)
+                                {
+                                    mapControl1.Invoke(new Action(() =>
+                                    {
+                                        string satCode = sat.SatCode == null ? "未知" : sat.SatCode.ToString();
+                                        mapControl1.DrawFixedImg("sat", sat.SatLat, sat.SatLon, DxHelper.SvgHelper.CreateSat(), new Size(32, 32), $"卫星编号:{satCode}\r\n轨道经度:{sat.SatLon}°\r\n轨道纬度:{sat.SatLat}°");
+                                    }));
+                                }
+                            }
+                            foreach (var errLins in data)//画GDOP
+                            {
+                                foreach (var line in errLins.MapLines)
+                                {
+                                    var newLine = SampleDots(line);
+                                    mapControl1.Invoke(new Action(() =>
+                                    {
+                                        var mapLines = newLine.Line.Select(p => (errLins.ErrDistanceKm, p.Lon, p.Lat));
+                                        mapControl1.DrawGdopLine(mapLines);
+                                    }));
+                                }
+                            }
+                        });
                     })
                     .AddPosMenu<XZPosRes>("误差椭圆", SvgHelper.LoadFromFile("Image\\误差椭圆.svg"), item =>
                     {
@@ -411,7 +446,7 @@ namespace XzXdDw.App.UserControl
                 twoStartOption.fu1 = fu1;
                 twoStartOption.fu2 = fu2;
 
-                var points = ErrEllipseHelper.ErrorEllipseDTFOTwoStart(twoStartOption);
+                var points = Api.低轨GDOP误差椭圆.ErrEllipseHelper.ErrorEllipseDTFOTwoStart(twoStartOption);
                 mapControl1.DrawDtoPonit($"双星误差椭圆线", points);
 
 

+ 193 - 88
XzXdDw.App/UserControl/XZGDOPParam .Designer.cs

@@ -28,20 +28,34 @@
         /// </summary>
         private void InitializeComponent()
         {
-            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions3 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject9 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject10 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject11 = new DevExpress.Utils.SerializableAppearanceObject();
-            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject12 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions1 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject1 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject2 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject3 = new DevExpress.Utils.SerializableAppearanceObject();
             DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject4 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions2 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject5 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject6 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject7 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject8 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions3 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject9 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject10 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject11 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject12 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions4 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject13 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject14 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject15 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject16 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.XtraEditors.Controls.EditorButtonImageOptions editorButtonImageOptions5 = new DevExpress.XtraEditors.Controls.EditorButtonImageOptions();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject17 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject18 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject19 = new DevExpress.Utils.SerializableAppearanceObject();
+            DevExpress.Utils.SerializableAppearanceObject serializableAppearanceObject20 = new DevExpress.Utils.SerializableAppearanceObject();
             this.layoutControl1 = new DevExpress.XtraLayout.LayoutControl();
             this.btnOK = new DevExpress.XtraEditors.SimpleButton();
             this.txtCapTime = new DevExpress.XtraEditors.DateEdit();
-            this.txtStationLocation1 = new DevExpress.XtraEditors.TextEdit();
             this.txtRefLocation1 = new DevExpress.XtraEditors.TextEdit();
             this.txtTleMain = new DevExpress.XtraEditors.SearchLookUpEdit();
             this.searchLookUpEdit1View = new DevExpress.XtraGrid.Views.Grid.GridView();
@@ -49,22 +63,28 @@
             this.gridView1 = new DevExpress.XtraGrid.Views.Grid.GridView();
             this.txtDtousErr1 = new DevExpress.XtraEditors.ButtonEdit();
             this.txtSatLocErr1 = new DevExpress.XtraEditors.ButtonEdit();
+            this.txtDfoErr1 = new DevExpress.XtraEditors.ButtonEdit();
+            this.txtEphVelErr1 = new DevExpress.XtraEditors.ButtonEdit();
+            this.txtFu1 = new DevExpress.XtraEditors.ButtonEdit();
+            this.txtFu2 = new DevExpress.XtraEditors.ButtonEdit();
             this.Root = new DevExpress.XtraLayout.LayoutControlGroup();
             this.layoutControlItem8 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem9 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem11 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem14 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.layoutControlItem13 = new DevExpress.XtraLayout.LayoutControlItem();
-            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem5 = new DevExpress.XtraLayout.LayoutControlItem();
             this.layoutControlItem1 = new DevExpress.XtraLayout.LayoutControlItem();
             this.emptySpaceItem1 = new DevExpress.XtraLayout.EmptySpaceItem();
             this.emptySpaceItem2 = new DevExpress.XtraLayout.EmptySpaceItem();
+            this.layoutControlItem4 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem6 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem7 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem10 = new DevExpress.XtraLayout.LayoutControlItem();
+            this.layoutControlItem12 = new DevExpress.XtraLayout.LayoutControlItem();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).BeginInit();
             this.layoutControl1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.txtCapTime.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtCapTime.Properties.CalendarTimeProperties)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.txtStationLocation1.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtRefLocation1.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtTleMain.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.searchLookUpEdit1View)).BeginInit();
@@ -72,32 +92,42 @@
             ((System.ComponentModel.ISupportInitialize)(this.gridView1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtDtousErr1.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtSatLocErr1.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtDfoErr1.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtEphVelErr1.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtFu1.Properties)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtFu2.Properties)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.Root)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).BeginInit();
             this.SuspendLayout();
             // 
             // layoutControl1
             // 
             this.layoutControl1.Controls.Add(this.btnOK);
             this.layoutControl1.Controls.Add(this.txtCapTime);
-            this.layoutControl1.Controls.Add(this.txtStationLocation1);
             this.layoutControl1.Controls.Add(this.txtRefLocation1);
             this.layoutControl1.Controls.Add(this.txtTleMain);
             this.layoutControl1.Controls.Add(this.txtTleAdja);
             this.layoutControl1.Controls.Add(this.txtDtousErr1);
             this.layoutControl1.Controls.Add(this.txtSatLocErr1);
+            this.layoutControl1.Controls.Add(this.txtDfoErr1);
+            this.layoutControl1.Controls.Add(this.txtEphVelErr1);
+            this.layoutControl1.Controls.Add(this.txtFu1);
+            this.layoutControl1.Controls.Add(this.txtFu2);
             this.layoutControl1.Dock = System.Windows.Forms.DockStyle.Fill;
             this.layoutControl1.Location = new System.Drawing.Point(0, 0);
-            this.layoutControl1.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.layoutControl1.Margin = new System.Windows.Forms.Padding(5);
             this.layoutControl1.Name = "layoutControl1";
             this.layoutControl1.OptionsCustomizationForm.DesignTimeCustomizationFormPositionAndSize = new System.Drawing.Rectangle(993, 379, 650, 400);
             this.layoutControl1.Root = this.Root;
@@ -107,8 +137,8 @@
             // 
             // btnOK
             // 
-            this.btnOK.Location = new System.Drawing.Point(249, 461);
-            this.btnOK.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
+            this.btnOK.Location = new System.Drawing.Point(249, 403);
+            this.btnOK.Margin = new System.Windows.Forms.Padding(5);
             this.btnOK.Name = "btnOK";
             this.btnOK.Size = new System.Drawing.Size(241, 32);
             this.btnOK.StyleController = this.layoutControl1;
@@ -119,7 +149,7 @@
             // txtCapTime
             // 
             this.txtCapTime.EditValue = null;
-            this.txtCapTime.Location = new System.Drawing.Point(2, 156);
+            this.txtCapTime.Location = new System.Drawing.Point(2, 159);
             this.txtCapTime.MaximumSize = new System.Drawing.Size(0, 34);
             this.txtCapTime.MinimumSize = new System.Drawing.Size(0, 34);
             this.txtCapTime.Name = "txtCapTime";
@@ -128,32 +158,19 @@
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
             this.txtCapTime.Properties.CalendarTimeProperties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
             new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Combo)});
-            this.txtCapTime.Size = new System.Drawing.Size(489, 34);
+            this.txtCapTime.Size = new System.Drawing.Size(242, 34);
             this.txtCapTime.StyleController = this.layoutControl1;
             this.txtCapTime.TabIndex = 8;
             // 
-            // txtStationLocation1
-            // 
-            this.txtStationLocation1.EditValue = "";
-            this.txtStationLocation1.Location = new System.Drawing.Point(2, 220);
-            this.txtStationLocation1.MaximumSize = new System.Drawing.Size(0, 34);
-            this.txtStationLocation1.MinimumSize = new System.Drawing.Size(0, 34);
-            this.txtStationLocation1.Name = "txtStationLocation1";
-            this.txtStationLocation1.Properties.AutoHeight = false;
-            this.txtStationLocation1.Size = new System.Drawing.Size(489, 34);
-            this.txtStationLocation1.StyleController = this.layoutControl1;
-            this.txtStationLocation1.TabIndex = 11;
-            this.txtStationLocation1.ToolTip = "经度纬度之间用英文逗号隔开";
-            // 
             // txtRefLocation1
             // 
             this.txtRefLocation1.EditValue = "";
-            this.txtRefLocation1.Location = new System.Drawing.Point(2, 284);
+            this.txtRefLocation1.Location = new System.Drawing.Point(248, 159);
             this.txtRefLocation1.MaximumSize = new System.Drawing.Size(0, 34);
             this.txtRefLocation1.MinimumSize = new System.Drawing.Size(0, 34);
             this.txtRefLocation1.Name = "txtRefLocation1";
             this.txtRefLocation1.Properties.AutoHeight = false;
-            this.txtRefLocation1.Size = new System.Drawing.Size(489, 34);
+            this.txtRefLocation1.Size = new System.Drawing.Size(243, 34);
             this.txtRefLocation1.StyleController = this.layoutControl1;
             this.txtRefLocation1.TabIndex = 10;
             this.txtRefLocation1.ToolTip = "经度纬度之间用英文逗号隔开";
@@ -161,7 +178,7 @@
             // txtTleMain
             // 
             this.txtTleMain.EditValue = "";
-            this.txtTleMain.Location = new System.Drawing.Point(2, 28);
+            this.txtTleMain.Location = new System.Drawing.Point(2, 29);
             this.txtTleMain.MaximumSize = new System.Drawing.Size(0, 34);
             this.txtTleMain.MinimumSize = new System.Drawing.Size(0, 34);
             this.txtTleMain.Name = "txtTleMain";
@@ -188,7 +205,7 @@
             // txtTleAdja
             // 
             this.txtTleAdja.EditValue = "";
-            this.txtTleAdja.Location = new System.Drawing.Point(2, 92);
+            this.txtTleAdja.Location = new System.Drawing.Point(2, 94);
             this.txtTleAdja.MaximumSize = new System.Drawing.Size(0, 34);
             this.txtTleAdja.MinimumSize = new System.Drawing.Size(0, 34);
             this.txtTleAdja.Name = "txtTleAdja";
@@ -215,14 +232,14 @@
             // txtDtousErr1
             // 
             this.txtDtousErr1.EditValue = "";
-            this.txtDtousErr1.Location = new System.Drawing.Point(2, 348);
+            this.txtDtousErr1.Location = new System.Drawing.Point(2, 224);
             this.txtDtousErr1.MaximumSize = new System.Drawing.Size(0, 34);
             this.txtDtousErr1.MinimumSize = new System.Drawing.Size(0, 34);
             this.txtDtousErr1.Name = "txtDtousErr1";
             this.txtDtousErr1.Properties.AutoHeight = false;
             this.txtDtousErr1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "us", -1, false, true, false, editorButtonImageOptions3, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject9, serializableAppearanceObject10, serializableAppearanceObject11, serializableAppearanceObject12, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
-            this.txtDtousErr1.Size = new System.Drawing.Size(489, 34);
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "us", -1, false, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtDtousErr1.Size = new System.Drawing.Size(242, 34);
             this.txtDtousErr1.StyleController = this.layoutControl1;
             this.txtDtousErr1.TabIndex = 6;
             this.txtDtousErr1.ToolTip = "ECEF坐标X";
@@ -230,18 +247,62 @@
             // txtSatLocErr1
             // 
             this.txtSatLocErr1.EditValue = "";
-            this.txtSatLocErr1.Location = new System.Drawing.Point(2, 412);
+            this.txtSatLocErr1.Location = new System.Drawing.Point(2, 289);
             this.txtSatLocErr1.MaximumSize = new System.Drawing.Size(0, 34);
             this.txtSatLocErr1.MinimumSize = new System.Drawing.Size(0, 34);
             this.txtSatLocErr1.Name = "txtSatLocErr1";
             this.txtSatLocErr1.Properties.AutoHeight = false;
             this.txtSatLocErr1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
-            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "m", -1, false, true, false, editorButtonImageOptions1, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject1, serializableAppearanceObject2, serializableAppearanceObject3, serializableAppearanceObject4, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
-            this.txtSatLocErr1.Size = new System.Drawing.Size(489, 34);
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "m", -1, false, true, false, editorButtonImageOptions2, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject5, serializableAppearanceObject6, serializableAppearanceObject7, serializableAppearanceObject8, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtSatLocErr1.Size = new System.Drawing.Size(242, 34);
             this.txtSatLocErr1.StyleController = this.layoutControl1;
             this.txtSatLocErr1.TabIndex = 6;
             this.txtSatLocErr1.ToolTip = "ECEF坐标X";
             // 
+            // txtDfoErr1
+            // 
+            this.txtDfoErr1.Location = new System.Drawing.Point(248, 224);
+            this.txtDfoErr1.MaximumSize = new System.Drawing.Size(0, 34);
+            this.txtDfoErr1.MinimumSize = new System.Drawing.Size(0, 34);
+            this.txtDfoErr1.Name = "txtDfoErr1";
+            this.txtDfoErr1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "us", -1, false, true, false, editorButtonImageOptions3, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject9, serializableAppearanceObject10, serializableAppearanceObject11, serializableAppearanceObject12, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtDfoErr1.Size = new System.Drawing.Size(243, 34);
+            this.txtDfoErr1.StyleController = this.layoutControl1;
+            this.txtDfoErr1.TabIndex = 13;
+            // 
+            // txtEphVelErr1
+            // 
+            this.txtEphVelErr1.Location = new System.Drawing.Point(248, 289);
+            this.txtEphVelErr1.MaximumSize = new System.Drawing.Size(0, 34);
+            this.txtEphVelErr1.MinimumSize = new System.Drawing.Size(0, 34);
+            this.txtEphVelErr1.Name = "txtEphVelErr1";
+            this.txtEphVelErr1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph)});
+            this.txtEphVelErr1.Size = new System.Drawing.Size(243, 34);
+            this.txtEphVelErr1.StyleController = this.layoutControl1;
+            this.txtEphVelErr1.TabIndex = 14;
+            // 
+            // txtFu1
+            // 
+            this.txtFu1.Location = new System.Drawing.Point(2, 354);
+            this.txtFu1.Name = "txtFu1";
+            this.txtFu1.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "MHz", -1, false, true, false, editorButtonImageOptions4, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject13, serializableAppearanceObject14, serializableAppearanceObject15, serializableAppearanceObject16, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtFu1.Size = new System.Drawing.Size(242, 34);
+            this.txtFu1.StyleController = this.layoutControl1;
+            this.txtFu1.TabIndex = 15;
+            // 
+            // txtFu2
+            // 
+            this.txtFu2.Location = new System.Drawing.Point(248, 354);
+            this.txtFu2.Name = "txtFu2";
+            this.txtFu2.Properties.Buttons.AddRange(new DevExpress.XtraEditors.Controls.EditorButton[] {
+            new DevExpress.XtraEditors.Controls.EditorButton(DevExpress.XtraEditors.Controls.ButtonPredefines.Glyph, "MHz", -1, false, true, false, editorButtonImageOptions5, new DevExpress.Utils.KeyShortcut(System.Windows.Forms.Keys.None), serializableAppearanceObject17, serializableAppearanceObject18, serializableAppearanceObject19, serializableAppearanceObject20, "", null, null, DevExpress.Utils.ToolTipAnchor.Default)});
+            this.txtFu2.Size = new System.Drawing.Size(243, 34);
+            this.txtFu2.StyleController = this.layoutControl1;
+            this.txtFu2.TabIndex = 16;
+            // 
             // Root
             // 
             this.Root.GroupBordersVisible = false;
@@ -249,13 +310,16 @@
             this.layoutControlItem8,
             this.layoutControlItem9,
             this.layoutControlItem11,
-            this.layoutControlItem14,
-            this.layoutControlItem13,
-            this.layoutControlItem4,
             this.layoutControlItem5,
             this.layoutControlItem1,
             this.emptySpaceItem1,
-            this.emptySpaceItem2});
+            this.emptySpaceItem2,
+            this.layoutControlItem4,
+            this.layoutControlItem10,
+            this.layoutControlItem14,
+            this.layoutControlItem6,
+            this.layoutControlItem7,
+            this.layoutControlItem12});
             this.Root.Name = "Root";
             this.Root.Size = new System.Drawing.Size(493, 875);
             this.Root.TextVisible = false;
@@ -266,7 +330,7 @@
             this.layoutControlItem8.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
             this.layoutControlItem8.Location = new System.Drawing.Point(0, 0);
             this.layoutControlItem8.Name = "layoutControlItem8";
-            this.layoutControlItem8.Size = new System.Drawing.Size(493, 64);
+            this.layoutControlItem8.Size = new System.Drawing.Size(493, 65);
             this.layoutControlItem8.Text = "主星星历";
             this.layoutControlItem8.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem8.TextSize = new System.Drawing.Size(108, 22);
@@ -275,9 +339,9 @@
             // 
             this.layoutControlItem9.Control = this.txtTleAdja;
             this.layoutControlItem9.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
-            this.layoutControlItem9.Location = new System.Drawing.Point(0, 64);
+            this.layoutControlItem9.Location = new System.Drawing.Point(0, 65);
             this.layoutControlItem9.Name = "layoutControlItem9";
-            this.layoutControlItem9.Size = new System.Drawing.Size(493, 64);
+            this.layoutControlItem9.Size = new System.Drawing.Size(493, 65);
             this.layoutControlItem9.Text = "邻星星历";
             this.layoutControlItem9.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem9.TextSize = new System.Drawing.Size(108, 22);
@@ -286,9 +350,9 @@
             // 
             this.layoutControlItem11.Control = this.txtCapTime;
             this.layoutControlItem11.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
-            this.layoutControlItem11.Location = new System.Drawing.Point(0, 128);
+            this.layoutControlItem11.Location = new System.Drawing.Point(0, 130);
             this.layoutControlItem11.Name = "layoutControlItem11";
-            this.layoutControlItem11.Size = new System.Drawing.Size(493, 64);
+            this.layoutControlItem11.Size = new System.Drawing.Size(246, 65);
             this.layoutControlItem11.Text = "采集时刻";
             this.layoutControlItem11.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem11.TextSize = new System.Drawing.Size(108, 22);
@@ -297,44 +361,21 @@
             // 
             this.layoutControlItem14.Control = this.txtRefLocation1;
             this.layoutControlItem14.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
-            this.layoutControlItem14.Location = new System.Drawing.Point(0, 256);
+            this.layoutControlItem14.Location = new System.Drawing.Point(246, 130);
             this.layoutControlItem14.Name = "layoutControlItem14";
-            this.layoutControlItem14.Size = new System.Drawing.Size(493, 64);
+            this.layoutControlItem14.Size = new System.Drawing.Size(247, 65);
             this.layoutControlItem14.Text = "参考站经纬度";
             this.layoutControlItem14.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem14.TextSize = new System.Drawing.Size(108, 22);
             // 
-            // layoutControlItem13
-            // 
-            this.layoutControlItem13.Control = this.txtStationLocation1;
-            this.layoutControlItem13.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
-            this.layoutControlItem13.Location = new System.Drawing.Point(0, 192);
-            this.layoutControlItem13.Name = "layoutControlItem13";
-            this.layoutControlItem13.Size = new System.Drawing.Size(493, 64);
-            this.layoutControlItem13.Text = "超短站经纬度";
-            this.layoutControlItem13.TextLocation = DevExpress.Utils.Locations.Top;
-            this.layoutControlItem13.TextSize = new System.Drawing.Size(108, 22);
-            // 
-            // layoutControlItem4
-            // 
-            this.layoutControlItem4.Control = this.txtDtousErr1;
-            this.layoutControlItem4.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
-            this.layoutControlItem4.CustomizationFormText = "低轨卫星X";
-            this.layoutControlItem4.Location = new System.Drawing.Point(0, 320);
-            this.layoutControlItem4.Name = "layoutControlItem4";
-            this.layoutControlItem4.Size = new System.Drawing.Size(493, 64);
-            this.layoutControlItem4.Text = "时差误差";
-            this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Top;
-            this.layoutControlItem4.TextSize = new System.Drawing.Size(108, 22);
-            // 
             // layoutControlItem5
             // 
             this.layoutControlItem5.Control = this.txtSatLocErr1;
             this.layoutControlItem5.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
             this.layoutControlItem5.CustomizationFormText = "低轨卫星X";
-            this.layoutControlItem5.Location = new System.Drawing.Point(0, 384);
+            this.layoutControlItem5.Location = new System.Drawing.Point(0, 260);
             this.layoutControlItem5.Name = "layoutControlItem5";
-            this.layoutControlItem5.Size = new System.Drawing.Size(493, 64);
+            this.layoutControlItem5.Size = new System.Drawing.Size(246, 65);
             this.layoutControlItem5.Text = "星历位置误差";
             this.layoutControlItem5.TextLocation = DevExpress.Utils.Locations.Top;
             this.layoutControlItem5.TextSize = new System.Drawing.Size(108, 22);
@@ -342,7 +383,7 @@
             // layoutControlItem1
             // 
             this.layoutControlItem1.Control = this.btnOK;
-            this.layoutControlItem1.Location = new System.Drawing.Point(246, 448);
+            this.layoutControlItem1.Location = new System.Drawing.Point(246, 390);
             this.layoutControlItem1.Name = "layoutControlItem1";
             this.layoutControlItem1.Padding = new DevExpress.XtraLayout.Utils.Padding(3, 3, 13, 3);
             this.layoutControlItem1.Size = new System.Drawing.Size(247, 48);
@@ -352,33 +393,84 @@
             // emptySpaceItem1
             // 
             this.emptySpaceItem1.AllowHotTrack = false;
-            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 496);
+            this.emptySpaceItem1.Location = new System.Drawing.Point(0, 438);
             this.emptySpaceItem1.Name = "emptySpaceItem1";
-            this.emptySpaceItem1.Size = new System.Drawing.Size(493, 379);
+            this.emptySpaceItem1.Size = new System.Drawing.Size(493, 437);
             this.emptySpaceItem1.TextSize = new System.Drawing.Size(0, 0);
             // 
             // emptySpaceItem2
             // 
             this.emptySpaceItem2.AllowHotTrack = false;
-            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 448);
+            this.emptySpaceItem2.Location = new System.Drawing.Point(0, 390);
             this.emptySpaceItem2.Name = "emptySpaceItem2";
             this.emptySpaceItem2.Size = new System.Drawing.Size(246, 48);
             this.emptySpaceItem2.TextSize = new System.Drawing.Size(0, 0);
             // 
-            // XZGDOPParam
+            // layoutControlItem4
+            // 
+            this.layoutControlItem4.Control = this.txtDtousErr1;
+            this.layoutControlItem4.ControlAlignment = System.Drawing.ContentAlignment.TopLeft;
+            this.layoutControlItem4.CustomizationFormText = "低轨卫星X";
+            this.layoutControlItem4.Location = new System.Drawing.Point(0, 195);
+            this.layoutControlItem4.Name = "layoutControlItem4";
+            this.layoutControlItem4.Size = new System.Drawing.Size(246, 65);
+            this.layoutControlItem4.Text = "时差误差";
+            this.layoutControlItem4.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem4.TextSize = new System.Drawing.Size(108, 22);
+            // 
+            // layoutControlItem6
+            // 
+            this.layoutControlItem6.Control = this.txtDfoErr1;
+            this.layoutControlItem6.Location = new System.Drawing.Point(246, 195);
+            this.layoutControlItem6.Name = "layoutControlItem6";
+            this.layoutControlItem6.Size = new System.Drawing.Size(247, 65);
+            this.layoutControlItem6.Text = "频差误差";
+            this.layoutControlItem6.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem6.TextSize = new System.Drawing.Size(108, 22);
+            // 
+            // layoutControlItem7
+            // 
+            this.layoutControlItem7.Control = this.txtEphVelErr1;
+            this.layoutControlItem7.Location = new System.Drawing.Point(246, 260);
+            this.layoutControlItem7.Name = "layoutControlItem7";
+            this.layoutControlItem7.Size = new System.Drawing.Size(247, 65);
+            this.layoutControlItem7.Text = "星历速度误差";
+            this.layoutControlItem7.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem7.TextSize = new System.Drawing.Size(108, 22);
+            // 
+            // layoutControlItem10
+            // 
+            this.layoutControlItem10.Control = this.txtFu1;
+            this.layoutControlItem10.Location = new System.Drawing.Point(0, 325);
+            this.layoutControlItem10.Name = "layoutControlItem10";
+            this.layoutControlItem10.Size = new System.Drawing.Size(246, 65);
+            this.layoutControlItem10.Text = "主星上行频点";
+            this.layoutControlItem10.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem10.TextSize = new System.Drawing.Size(108, 22);
+            // 
+            // layoutControlItem12
+            // 
+            this.layoutControlItem12.Control = this.txtFu2;
+            this.layoutControlItem12.Location = new System.Drawing.Point(246, 325);
+            this.layoutControlItem12.Name = "layoutControlItem12";
+            this.layoutControlItem12.Size = new System.Drawing.Size(247, 65);
+            this.layoutControlItem12.Text = "邻星上行频点";
+            this.layoutControlItem12.TextLocation = DevExpress.Utils.Locations.Top;
+            this.layoutControlItem12.TextSize = new System.Drawing.Size(108, 22);
+            // 
+            // XZGDOPParam 
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 22F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.Controls.Add(this.layoutControl1);
-            this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
-            this.Name = "XZGDOPParam";
+            this.Margin = new System.Windows.Forms.Padding(5);
+            this.Name = "XZGDOPParam ";
             this.Size = new System.Drawing.Size(493, 875);
             this.Load += new System.EventHandler(this.XZGDOPParam_Load);
             ((System.ComponentModel.ISupportInitialize)(this.layoutControl1)).EndInit();
             this.layoutControl1.ResumeLayout(false);
             ((System.ComponentModel.ISupportInitialize)(this.txtCapTime.Properties.CalendarTimeProperties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtCapTime.Properties)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.txtStationLocation1.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtRefLocation1.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtTleMain.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.searchLookUpEdit1View)).EndInit();
@@ -386,17 +478,24 @@
             ((System.ComponentModel.ISupportInitialize)(this.gridView1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtDtousErr1.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.txtSatLocErr1.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtDfoErr1.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtEphVelErr1.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtFu1.Properties)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.txtFu2.Properties)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.Root)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem8)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem9)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem11)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem14)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem13)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem5)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.emptySpaceItem2)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem4)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem6)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem7)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem10)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.layoutControlItem12)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -404,7 +503,6 @@
         #endregion
         private DevExpress.XtraLayout.LayoutControl layoutControl1;
         private DevExpress.XtraEditors.DateEdit txtCapTime;
-        private DevExpress.XtraEditors.TextEdit txtStationLocation1;
         private DevExpress.XtraEditors.TextEdit txtRefLocation1;
         private DevExpress.XtraEditors.SearchLookUpEdit txtTleMain;
         private DevExpress.XtraGrid.Views.Grid.GridView searchLookUpEdit1View;
@@ -417,12 +515,19 @@
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem9;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem11;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem14;
-        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem13;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem4;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem5;
         private DevExpress.XtraEditors.SimpleButton btnOK;
         private DevExpress.XtraLayout.LayoutControlItem layoutControlItem1;
         private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem1;
         private DevExpress.XtraLayout.EmptySpaceItem emptySpaceItem2;
+        private DevExpress.XtraEditors.ButtonEdit txtDfoErr1;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem6;
+        private DevExpress.XtraEditors.ButtonEdit txtEphVelErr1;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem7;
+        private DevExpress.XtraEditors.ButtonEdit txtFu1;
+        private DevExpress.XtraEditors.ButtonEdit txtFu2;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem10;
+        private DevExpress.XtraLayout.LayoutControlItem layoutControlItem12;
     }
 }

+ 28 - 15
XzXdDw.App/UserControl/XZGDOPParam .cs

@@ -22,12 +22,14 @@ namespace XdCxRhDW.App.UserControl
             TleMain = txtTleMain.Text.Trim(),
             TleAdja = txtTleAdja.Text.Trim(),
             CapTime = txtCapTime.DateTime,
-            StationLon = Convert.ToDouble(txtStationLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
-            StationLat = Convert.ToDouble(txtStationLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
             RefLon = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
             RefLat = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
             DtousErr = Convert.ToDouble(txtDtousErr1.Text),
+            DfoErr = Convert.ToDouble(txtDfoErr1.Text),
             SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
+            EphVelErr = Convert.ToDouble(txtSatLocErr1.Text),
+            fu1 = Convert.ToDouble(txtFu1.Text) * 1e6,
+            fu2 = Convert.ToDouble(txtFu2.Text) * 1e6,
         };
         public XZGDOPParam()
         {
@@ -40,16 +42,18 @@ namespace XdCxRhDW.App.UserControl
             txtCapTime.DateTime = TestData.Time;
             txtTleMain.UseDoubleClickToSelectAll();
             txtTleAdja.UseDoubleClickToSelectAll();
-            txtStationLocation1.UseDoubleClickToSelectAll();
             txtRefLocation1.UseDoubleClickToSelectAll();
 
             this.txtCapTime.DateTime = TestData.Time;
-            this.txtStationLocation1.Text = TestData.RecLoc;
             this.txtRefLocation1.Text = TestData.RefLoc;
             txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain;
             txtTleAdja.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1;
             this.txtDtousErr1.EditValue = TestData.DtousErr;
+            this.txtDfoErr1.EditValue = TestData.DfoHzErr;
             this.txtSatLocErr1.EditValue = TestData.SatLocErr;
+            this.txtEphVelErr1.EditValue = TestData.EphVelErr;
+            this.txtFu1.EditValue = TestData.Freq;
+            this.txtFu2.EditValue = TestData.Freq;
         }
 
         private void btnOK_Click(object sender, EventArgs e)
@@ -74,17 +78,6 @@ namespace XdCxRhDW.App.UserControl
         /// </summary>
         public DateTime CapTime { get; set; }
 
-        /// <summary>
-        /// 超短接收站-经度
-        /// </summary>
-        public double StationLon { get; set; }
-
-        /// <summary>
-        /// 超短接收站-纬度
-        /// </summary>
-        public double StationLat { get; set; }
-
-
         /// <summary>
         /// 参考站位置经度
         /// </summary>
@@ -100,10 +93,30 @@ namespace XdCxRhDW.App.UserControl
         /// </summary>
         public double DtousErr { get; set; } = 1;
 
+        /// <summary>
+        /// 频差误差(Hz)
+        /// </summary>
+        public double DfoErr { get; set; }
+
         /// <summary>
         /// 星历位置误差(单位米)
         /// </summary>
         public double SatLocErr { get; set; } = 10000;
 
+        /// <summary>
+        ///星历速度误差
+        /// </summary>
+        public double EphVelErr { get; set; }
+
+        /// <summary>
+        /// 上行频点1(Hz)
+        /// </summary>
+        public double fu1 { get; set; }
+
+        /// <summary>
+        /// 上行频点2(Hz)
+        /// </summary>
+        public double fu2 { get; set; }
+
     }
 }