DXGDOPParam.cs 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 DXGDOPParam : DevExpress.XtraEditors.XtraUserControl
  18. {
  19. public GDOP单星协同接口 Model => new GDOP单星协同接口()
  20. {
  21. TleLeo1 = txtTleLeo1.Text.Trim(),
  22. CapTime1 = txtCapTime1.DateTime,
  23. CapTime2 = txtCapTime2.DateTime,
  24. CapTime3 = txtCapTime3.DateTime,
  25. DfoErr = Convert.ToDouble(txtDfoErr1.Text),
  26. SatLocErr = Convert.ToDouble(txtSatLocErr1.Text),
  27. EphVelErr = Convert.ToDouble(txtEphVelErr1.Text),
  28. fu = Convert.ToDouble(txtFu1.Text)*1e6,
  29. };
  30. public DXGDOPParam()
  31. {
  32. InitializeComponent();
  33. }
  34. private void DXGDOPParam_Load(object sender, EventArgs e)
  35. {
  36. txtTleLeo1.UseDoubleClickToSelectAll();
  37. txtTleLeo1.UseDefault().SetStringData(TestData.AllTle).Text = TestData.tleleo1;
  38. this.txtCapTime1.DateTime = TestData.leoTime;
  39. this.txtCapTime2.DateTime = TestData.leoTime;
  40. this.txtCapTime3.DateTime = TestData.leoTime;
  41. this.txtDfoErr1.EditValue = TestData.DtousErr;
  42. this.txtSatLocErr1.EditValue = TestData.SatLocErr;
  43. this.txtEphVelErr1.EditValue = TestData.EphVelErr;
  44. this.txtFu1.EditValue = TestData.Freq;
  45. }
  46. private void btnOK_Click(object sender, EventArgs e)
  47. {
  48. PopupHelper.HidePopup(this);
  49. }
  50. }
  51. public class GDOP单星协同接口
  52. {
  53. /// <summary>
  54. /// 主星星历
  55. /// </summary>
  56. public string TleLeo1 { get; set; }
  57. /// <summary>
  58. ///采集时刻1
  59. /// </summary>
  60. public DateTime CapTime1 { get; set; }
  61. /// <summary>
  62. /// 采集时刻2
  63. /// </summary>
  64. public DateTime CapTime2 { get; set; }
  65. /// <summary>
  66. /// 采集时刻3
  67. /// </summary>
  68. public DateTime CapTime3 { get; set; }
  69. /// <summary>
  70. /// 频差误差(Hz)
  71. /// </summary>
  72. public double DfoErr { get; set; }
  73. /// <summary>
  74. /// 星历位置误差
  75. /// </summary>
  76. public double SatLocErr { get; set; } = 10000;
  77. /// <summary>
  78. ///星历速度误差
  79. /// </summary>
  80. public double EphVelErr { get; set; }
  81. /// <summary>
  82. /// 上行频点(Hz)
  83. /// </summary>
  84. public double fu { get; set; }
  85. }
  86. }