123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- 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 XdDw.App;
- using XzXdDw.App.Model;
- namespace XdDw.App.UserControl
- {
- public partial class X2D1GDOPParam : DevExpress.XtraEditors.XtraUserControl
- {
- public GDOP星地两星一地接口 Model=> new GDOP星地两星一地接口()
- {
- 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),
- SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
- };
- public X2D1GDOPParam()
- {
- InitializeComponent();
- }
- private void X2D1GDOPParam_Load(object sender, EventArgs e)
- {
- txtCapTime.UseDefault();
- 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.txtSatLocErr1.EditValue = TestData.SatLocErr;
- }
- private void btnOK_Click(object sender, EventArgs e)
- {
- PopupHelper.HidePopup(this);
- }
- }
- public class GDOP星地两星一地接口
- {
- /// <summary>
- /// 主星星历(Tle)
- /// </summary>
- public string TleMain { get; set; }
- /// <summary>
- /// 邻星星历(Tle)
- /// </summary>
- public string TleAdja { get; set; }
- /// <summary>
- /// 采集时刻
- /// </summary>
- public DateTime CapTime { get; set; }
- /// <summary>
- /// 超短接收站-经度
- /// </summary>
- public double StationLon { get; set; }
- /// <summary>
- /// 超短接收站-纬度
- /// </summary>
- public double StationLat { get; set; }
- /// <summary>
- /// 参考站位置经度
- /// </summary>
- public double RefLon { get; set; }
- /// <summary>
- /// 参考站位置纬度
- /// </summary>
- public double RefLat { get; set; }
- /// <summary>
- /// 时差误差(单位us)
- /// </summary>
- public double DtousErr { get; set; } = 1;
- /// <summary>
- /// 星历位置误差(单位米)
- /// </summary>
- public double SatLocErr { get; set; } = 10000;
- }
- }
|