X2D1GDOPParam.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. using DevExpress.XtraEditors;
  2. using DxHelper;
  3. using ExtensionsDev;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.ComponentModel;
  7. using System.Data;
  8. using System.Drawing;
  9. using System.Linq;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13. using XdDw.App;
  14. using XzXdDw.App.Model;
  15. namespace XdDw.App.UserControl
  16. {
  17. public partial class X2D1GDOPParam : DevExpress.XtraEditors.XtraUserControl
  18. {
  19. public GDOP星地两星一地接口 Model=> new GDOP星地两星一地接口()
  20. {
  21. TleMain = txtTleMain.Text.Trim(),
  22. TleAdja = txtTleAdja.Text.Trim(),
  23. CapTime = txtCapTime.DateTime,
  24. StationLon = Convert.ToDouble(txtStationLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
  25. StationLat = Convert.ToDouble(txtStationLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
  26. RefLon = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
  27. RefLat = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
  28. DtousErr = Convert.ToDouble(txtDtousErr1.Text),
  29. SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
  30. };
  31. public X2D1GDOPParam()
  32. {
  33. InitializeComponent();
  34. }
  35. private void X2D1GDOPParam_Load(object sender, EventArgs e)
  36. {
  37. txtCapTime.UseDefault();
  38. txtCapTime.DateTime = TestData.Time;
  39. txtTleMain.UseDoubleClickToSelectAll();
  40. txtTleAdja.UseDoubleClickToSelectAll();
  41. txtStationLocation1.UseDoubleClickToSelectAll();
  42. txtRefLocation1.UseDoubleClickToSelectAll();
  43. this.txtCapTime.DateTime = TestData.Time;
  44. this.txtStationLocation1.Text = TestData.RecLoc;
  45. this.txtRefLocation1.Text = TestData.RefLoc;
  46. txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain;
  47. txtTleAdja.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1;
  48. this.txtDtousErr1.EditValue = TestData.DtousErr;
  49. this.txtSatLocErr1.EditValue = TestData.SatLocErr;
  50. }
  51. private void btnOK_Click(object sender, EventArgs e)
  52. {
  53. PopupHelper.HidePopup(this);
  54. }
  55. }
  56. public class GDOP星地两星一地接口
  57. {
  58. /// <summary>
  59. /// 主星星历(Tle)
  60. /// </summary>
  61. public string TleMain { get; set; }
  62. /// <summary>
  63. /// 邻星星历(Tle)
  64. /// </summary>
  65. public string TleAdja { get; set; }
  66. /// <summary>
  67. /// 采集时刻
  68. /// </summary>
  69. public DateTime CapTime { get; set; }
  70. /// <summary>
  71. /// 超短接收站-经度
  72. /// </summary>
  73. public double StationLon { get; set; }
  74. /// <summary>
  75. /// 超短接收站-纬度
  76. /// </summary>
  77. public double StationLat { get; set; }
  78. /// <summary>
  79. /// 参考站位置经度
  80. /// </summary>
  81. public double RefLon { get; set; }
  82. /// <summary>
  83. /// 参考站位置纬度
  84. /// </summary>
  85. public double RefLat { get; set; }
  86. /// <summary>
  87. /// 时差误差(单位us)
  88. /// </summary>
  89. public double DtousErr { get; set; } = 1;
  90. /// <summary>
  91. /// 星历位置误差(单位米)
  92. /// </summary>
  93. public double SatLocErr { get; set; } = 10000;
  94. }
  95. }