XZGDOPParam .cs 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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 XzXdDw.App;
  14. using XzXdDw.App.Model;
  15. namespace XdCxRhDW.App.UserControl
  16. {
  17. public partial class XZGDOPParam : DevExpress.XtraEditors.XtraUserControl
  18. {
  19. public GDOP星座协同接口 Model => new GDOP星座协同接口()
  20. {
  21. TleLeo1 = txtTleLeo1.Text.Trim(),
  22. TleLeo2 = txtTleLeo2.Text.Trim(),
  23. CapTime = txtCapTime.DateTime,
  24. RefLon = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[0].Trim()),
  25. RefLat = Convert.ToDouble(txtRefLocation1.Text.Replace(",", ",").Split(',')[1].Trim()),
  26. DtousErr = Convert.ToDouble(txtDtousErr1.Text),
  27. DfoErr = Convert.ToDouble(txtDfoErr1.Text),
  28. SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
  29. EphVelErr = Convert.ToDouble(txtEphVelErr1.Text),
  30. fu1 = Convert.ToDouble(txtFu1.Text) * 1e6,
  31. fu2 = Convert.ToDouble(txtFu2.Text) * 1e6,
  32. };
  33. public XZGDOPParam()
  34. {
  35. InitializeComponent();
  36. }
  37. private void XZGDOPParam_Load(object sender, EventArgs e)
  38. {
  39. txtCapTime.UseDefault();
  40. txtCapTime.DateTime = TestData.leoTime;
  41. txtTleLeo1.UseDoubleClickToSelectAll();
  42. txtTleLeo2.UseDoubleClickToSelectAll();
  43. txtRefLocation1.UseDoubleClickToSelectAll();
  44. this.txtCapTime.DateTime = TestData.leoTime;
  45. this.txtRefLocation1.Text = TestData.RefLoc;
  46. txtTleLeo1.UseDefault().SetStringData(TestData.AllTle).Text = TestData.tleleo1;
  47. txtTleLeo2.UseDefault().SetStringData(TestData.AllTle).Text = TestData.tleleo2;
  48. this.txtDtousErr1.EditValue = TestData.DtousErr;
  49. this.txtDfoErr1.EditValue = TestData.DfoHzErr;
  50. this.txtSatLocErr1.EditValue = TestData.SatLocErr;
  51. this.txtEphVelErr1.EditValue = TestData.EphVelErr;
  52. this.txtFu1.EditValue = TestData.Freq;
  53. this.txtFu2.EditValue = TestData.Freq;
  54. }
  55. private void btnOK_Click(object sender, EventArgs e)
  56. {
  57. PopupHelper.HidePopup(this);
  58. }
  59. }
  60. public class GDOP星座协同接口
  61. {
  62. /// <summary>
  63. /// 主星星历(Tle)
  64. /// </summary>
  65. public string TleLeo1 { get; set; }
  66. /// <summary>
  67. /// 邻星星历(Tle)
  68. /// </summary>
  69. public string TleLeo2 { get; set; }
  70. /// <summary>
  71. /// 采集时刻
  72. /// </summary>
  73. public DateTime CapTime { get; set; }
  74. /// <summary>
  75. /// 参考站位置经度
  76. /// </summary>
  77. public double RefLon { get; set; }
  78. /// <summary>
  79. /// 参考站位置纬度
  80. /// </summary>
  81. public double RefLat { get; set; }
  82. /// <summary>
  83. /// 时差误差(单位us)
  84. /// </summary>
  85. public double DtousErr { get; set; } = 1;
  86. /// <summary>
  87. /// 频差误差(Hz)
  88. /// </summary>
  89. public double DfoErr { get; set; }
  90. /// <summary>
  91. /// 星历位置误差(单位米)
  92. /// </summary>
  93. public double SatLocErr { get; set; } = 10000;
  94. /// <summary>
  95. ///星历速度误差
  96. /// </summary>
  97. public double EphVelErr { get; set; }
  98. /// <summary>
  99. /// 上行频点1(Hz)
  100. /// </summary>
  101. public double fu1 { get; set; }
  102. /// <summary>
  103. /// 上行频点2(Hz)
  104. /// </summary>
  105. public double fu2 { get; set; }
  106. }
  107. }