12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- using DevExpress.XtraEditors;
- using DxHelper;
- using ExtensionsDev;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using XzXdDw.App;
- using XzXdDw.App.Model;
- namespace XdCxRhDW.App.UserControl
- {
- public partial class DXGDOPParam : DevExpress.XtraEditors.XtraUserControl
- {
- public GDOP单星协同接口 Model => new GDOP单星协同接口()
- {
- TleLeo1 = txtTleLeo1.Text.Trim(),
- CapTime1 = txtCapTime1.DateTime,
- CapTime2 = txtCapTime2.DateTime,
- CapTime3 = txtCapTime3.DateTime,
- DfoErr = Convert.ToDouble(txtDfoErr1.Text),
- SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
- EphVelErr = Convert.ToDouble(txtEphVelErr1.Text),
- fu = Convert.ToDouble(txtFu1.Text)*1e6,
- };
- public DXGDOPParam()
- {
- InitializeComponent();
- }
- private void DXGDOPParam_Load(object sender, EventArgs e)
- {
- txtTleLeo1.UseDoubleClickToSelectAll();
- txtTleLeo1.UseDefault().SetStringData(TestData.AllTle).Text = TestData.tleleo1;
- this.txtCapTime1.DateTime = TestData.leoTime;
- this.txtCapTime2.DateTime = TestData.leoTime;
- this.txtCapTime3.DateTime = TestData.leoTime;
- this.txtDfoErr1.EditValue = TestData.DtousErr;
- this.txtSatLocErr1.EditValue = TestData.SatLocErr;
- this.txtEphVelErr1.EditValue = TestData.EphVelErr;
- this.txtFu1.EditValue = TestData.Freq;
- }
- private void btnOK_Click(object sender, EventArgs e)
- {
- PopupHelper.HidePopup(this);
- }
- }
- public class GDOP单星协同接口
- {
- /// <summary>
- /// 主星星历
- /// </summary>
- public string TleLeo1 { get; set; }
- /// <summary>
- ///采集时刻1
- /// </summary>
- public DateTime CapTime1 { get; set; }
- /// <summary>
- /// 采集时刻2
- /// </summary>
- public DateTime CapTime2 { get; set; }
- /// <summary>
- /// 采集时刻3
- /// </summary>
- public DateTime CapTime3 { get; set; }
- /// <summary>
- /// 频差误差(Hz)
- /// </summary>
- public double DfoErr { get; set; }
- /// <summary>
- /// 星历位置误差
- /// </summary>
- public double SatLocErr { get; set; } = 10000;
- /// <summary>
- ///星历速度误差
- /// </summary>
- public double EphVelErr { get; set; }
- /// <summary>
- /// 上行频点(Hz)
- /// </summary>
- public double fu { get; set; }
- }
- }
|