DXErrEllipseParam.cs 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. CapTime = txtCapTime.DateTime,
  23. CapTime1=txtCapTime1.DateTime,
  24. CapTime2=txtCapTime2.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. txtTleMain.UseDefault().SetStringData(TestData.AllTle).Text = TestData.TleMain;
  35. this.txtCapTime.DateTime = TestData.Time;
  36. this.txtCapTime1.DateTime = TestData.Time;
  37. this.txtCapTime2.DateTime = TestData.Time;
  38. this.txtDfoErr1.EditValue = TestData.DfoHzErr;
  39. this.txtSatLocErr1.EditValue = TestData.SatLocErr;
  40. this.txtEphVelErr1.EditValue = TestData.EphVelErr;
  41. this.txtFu1.EditValue = MBfu * 1e-6;
  42. }
  43. private void btnOK_Click(object sender, EventArgs e)
  44. {
  45. PopupHelper.HidePopup(this);
  46. }
  47. }
  48. public class ErrEllipse单星协同接口
  49. {
  50. /// <summary>
  51. /// 主星星历
  52. /// </summary>
  53. public string TleMain { get; set; }
  54. /// <summary>
  55. /// 采集时刻1
  56. /// </summary>
  57. public DateTime CapTime { get; set; }
  58. /// <summary>
  59. /// 采集时刻2
  60. /// </summary>
  61. public DateTime CapTime1 { get; set; }
  62. /// <summary>
  63. /// 采集时刻3
  64. /// </summary>
  65. public DateTime CapTime2 { get; set; }
  66. /// <summary>
  67. /// 频差误差(Hz)
  68. /// </summary>
  69. public double DfoErr { get; set; }
  70. /// <summary>
  71. /// 星历位置误差
  72. /// </summary>
  73. public double SatLocErr { get; set; } = 10000;
  74. /// <summary>
  75. ///星历速度误差
  76. /// </summary>
  77. public double EphVelErr { get; set; }
  78. /// <summary>
  79. /// 上行频点(Hz)
  80. /// </summary>
  81. public double fu { get; set; }
  82. }
  83. }