DialogADCalibrationMain.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. #pragma once
  2. #include "afxwin.h"
  3. // CDialogADCalibrationMain 对话框
  4. class CDialogADCalibrationMain : public CDialogEx
  5. {
  6. DECLARE_DYNAMIC(CDialogADCalibrationMain)
  7. public:
  8. CDialogADCalibrationMain(CWnd* pParent = NULL); // 标准构造函数
  9. virtual ~CDialogADCalibrationMain();
  10. // 对话框数据
  11. enum { IDD = IDD_DIALOG_AD_CAL_MAIN };
  12. protected:
  13. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
  14. DECLARE_MESSAGE_MAP()
  15. void GetResetPos(int nTubeOrientation);
  16. public:
  17. afx_msg void OnBnClickedButtonRotateTubeAngle();
  18. afx_msg void OnBnClickedButtonMoveTubeHeight();
  19. afx_msg void OnBnClickedButtonReadAdTubeAngle();
  20. afx_msg void OnBnClickedButtonReadAdTubeHeight();
  21. afx_msg void OnBnClickedButtonReadAdDetHeight();
  22. afx_msg void OnBnClickedButtonCalTubeAngleAd();
  23. afx_msg void OnBnClickedButtonCalTubeHeightAd();
  24. afx_msg void OnBnClickedButtonCalDetHeightAd();
  25. afx_msg void OnBnClickedButtonReadEncoderTubeAngle();
  26. afx_msg void OnBnClickedButtonReadEncoderTubeHeight();
  27. afx_msg void OnBnClickedButtonEnterCalibration();
  28. afx_msg void OnBnClickedButtonExitCalibration();
  29. afx_msg void OnBnClickedButtonResetSystem();
  30. afx_msg void OnBnClickedButtonCenteradjust();
  31. afx_msg void OnBnClickedButtonParking();
  32. afx_msg void OnBnClickedButtonTubeAngleLowLimit();
  33. afx_msg void OnBnClickedButtonTubeHeightLowLimit();
  34. afx_msg void OnBnClickedButtonEnterSelftest();
  35. afx_msg void OnBnClickedButtonExitSelftest();
  36. afx_msg void OnBnClickedButtonStartSelftest();
  37. afx_msg void OnBnClickedButtonActiveTubeAngleZClear();
  38. afx_msg void OnBnClickedButtonCancelTubeAngleZClear();
  39. afx_msg void OnBnClickedButtonActiveTubeHeightZClear();
  40. afx_msg void OnBnClickedButtonCancelTubeHeightZClear();
  41. afx_msg void OnBnClickedButtonRotateToTubeAngleZAxis();
  42. afx_msg void OnBnClickedButtonMoveToTubeHeightZAxis();
  43. afx_msg void OnBnClickedButtonEmStop();
  44. afx_msg void OnBnClickedButtonSetPcodeParam();
  45. afx_msg void OnBnClickedButtonRotateTubeAnglePhy();
  46. afx_msg void OnBnClickedButtonMoveTubeHeightPhy();
  47. private:
  48. void SetExamMode(int mode);
  49. void SetWorkstation();
  50. private:
  51. // 球管旋转角度
  52. CComboBox m_rotateDirection;
  53. // 球管旋转步长
  54. CEdit m_rotateStep;
  55. // 球管高度移动方向
  56. CComboBox m_tubeHeightDirection;
  57. // 球管高度移动步长
  58. CEdit m_tubeHeightStep;
  59. // 球管角度AD值
  60. CEdit m_tubeAngleAD;
  61. // 球管角度校正AD数组
  62. CEdit m_tubeAngleCalADs;
  63. // 球管角度校正物理值数组
  64. CEdit m_tubeAngleCalPhysicals;
  65. // 球管高度AD
  66. CEdit m_tubeHeightAD;
  67. // 球管高度校正AD数组
  68. CEdit m_tubHeightCalADs;
  69. // 球管高度校正物理数组
  70. CEdit m_tubeHeightCalPhysicals;
  71. // 探测器高度AD
  72. CEdit m_detectorAD;
  73. // 探测器高度校正AD数组
  74. CEdit m_detectorCalAds;
  75. // 探测器高度校正物理值数组
  76. CEdit m_detectorHeightCalPhysicals;
  77. // 球管角度编码器读数
  78. CEdit m_tubeAngleEncoder;
  79. // 球管高度编码器读数
  80. CEdit m_tubeHeightEncoder;
  81. // PositionCode
  82. CEdit m_pcode;
  83. public:
  84. virtual BOOL OnInitDialog();
  85. afx_msg void OnClose();
  86. afx_msg void OnBnClickedButtonInsertTubeAngle();
  87. afx_msg void OnBnClickedButtonInsertTubeHeight();
  88. afx_msg void OnBnClickedButtonInsertDetectorHeight();
  89. afx_msg void OnBnClickedButtonAutoCaladTubeangle();
  90. afx_msg void OnBnClickedButtonAutoCaladTubeheight();
  91. afx_msg void OnBnClickedTubeAngleSvo();
  92. afx_msg void OnBnClickedButtonTubeheightSvo();
  93. afx_msg void OnBnClickedRadioWall();
  94. afx_msg void OnBnClickedRadioTable();
  95. private:
  96. // 当前选中的检查模式
  97. CComboBox m_examMode;
  98. CEdit m_autoadTubeAngleCurrent;
  99. CEdit m_autoadTubeAngleHighlimit;
  100. CEdit m_autoadTubeAngleLowlimit;
  101. CEdit m_autoadTubeHeightCurrent;
  102. CEdit m_autoadTubeHeightHighlimit;
  103. CEdit m_autoadTubeHeightLowlimit;
  104. int m_tubeAngleSvoStatus;
  105. int m_tubeHeightSvoStatus;
  106. CComboBox m_selftestDOF;
  107. CEdit m_selftestHighlimit;
  108. CEdit m_selftestlowlimit;
  109. CEdit m_selftestperiod;
  110. CEdit m_selftestdutycycle;
  111. CEdit m_selftestRepeatTime;
  112. CComboBox m_comboTubeLineSelection;
  113. CComboBox m_comboDetectorSelection;
  114. float m_fTubeHeightLowPos;
  115. float m_fTubeHeightZeroPos;
  116. float m_fTubeHorizontalLowPos;
  117. float m_fTubeHorizontalZeroPos;
  118. public:
  119. CButton m_radioWSWall;
  120. CButton m_radioWSTable;
  121. afx_msg void OnBnClickedButtonResetTubeAngleSavevalue();
  122. afx_msg void OnBnClickedButtonResetTubeAngleEncoderzeroSavevalue();
  123. afx_msg void OnBnClickedButtonTubeLineSaveMinpos();
  124. afx_msg void OnBnClickedButtonTubeLineSaveEncoderzero();
  125. afx_msg void OnCbnSelchangeComboLineSelection();
  126. afx_msg void OnCbnSelendokComboLineSelection();
  127. };