DXErrEllipseParam.cs 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 DXErrEllipseParam : DevExpress.XtraEditors.XtraUserControl
  18. {
  19. public ErrEllipse单星协同接口 Model => new ErrEllipse单星协同接口()
  20. {
  21. TleMain = txtTleMain.Text.Trim(),
  22. TleAdja1 = txtTleAdja1.Text.Trim(),
  23. TleAdja2 = txtTleAdja2.Text.Trim(),
  24. CapTime = txtCapTime.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 DXErrEllipseParam(double MBfu)
  31. {
  32. InitializeComponent();
  33. txtTleMain.UseDoubleClickToSelectAll();
  34. txtTleAdja1.UseDoubleClickToSelectAll();
  35. txtTleAdja2.UseDoubleClickToSelectAll();
  36. txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain;
  37. txtTleAdja1.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1;
  38. txtTleAdja2.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleAdja1;
  39. this.txtCapTime.DateTime = TestData.Time;
  40. this.txtDfoErr1.EditValue = TestData.DtousErr;
  41. this.txtSatLocErr1.EditValue = TestData.SatLocErr;
  42. this.txtEphVelErr1.EditValue = TestData.EphVelErr;
  43. this.txtFu1.EditValue = MBfu * 1e-6;
  44. }
  45. private void btnOK_Click(object sender, EventArgs e)
  46. {
  47. PopupHelper.HidePopup(this);
  48. }
  49. }
  50. public class ErrEllipse单星协同接口
  51. {
  52. /// <summary>
  53. /// 第一时刻星历
  54. /// </summary>
  55. public string TleMain { get; set; }
  56. /// <summary>
  57. ///第二时刻星历
  58. /// </summary>
  59. public string TleAdja1 { get; set; }
  60. /// <summary>
  61. /// 第三时刻星历
  62. /// </summary>
  63. public string TleAdja2 { get; set; }
  64. /// <summary>
  65. /// 采集时刻
  66. /// </summary>
  67. public DateTime CapTime { get; set; }
  68. /// <summary>
  69. /// 频差误差(Hz)
  70. /// </summary>
  71. public double DfoErr { get; set; }
  72. /// <summary>
  73. /// 星历位置误差
  74. /// </summary>
  75. public double SatLocErr { get; set; } = 10000;
  76. /// <summary>
  77. ///星历速度误差
  78. /// </summary>
  79. public double EphVelErr { get; set; }
  80. /// <summary>
  81. /// 上行频点(Hz)
  82. /// </summary>
  83. public double fu { get; set; }
  84. }
  85. }