#pragma once #include "afxwin.h" // CDialogADCalibrationMain 对话框 class CDialogADCalibrationMain : public CDialogEx { DECLARE_DYNAMIC(CDialogADCalibrationMain) public: CDialogADCalibrationMain(CWnd* pParent = NULL); // 标准构造函数 virtual ~CDialogADCalibrationMain(); // 对话框数据 enum { IDD = IDD_DIALOG_AD_CAL_MAIN }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持 DECLARE_MESSAGE_MAP() void GetResetPos(int nTubeOrientation); public: afx_msg void OnBnClickedButtonRotateTubeAngle(); afx_msg void OnBnClickedButtonMoveTubeHeight(); afx_msg void OnBnClickedButtonReadAdTubeAngle(); afx_msg void OnBnClickedButtonReadAdTubeHeight(); afx_msg void OnBnClickedButtonReadAdDetHeight(); afx_msg void OnBnClickedButtonCalTubeAngleAd(); afx_msg void OnBnClickedButtonCalTubeHeightAd(); afx_msg void OnBnClickedButtonCalDetHeightAd(); afx_msg void OnBnClickedButtonReadEncoderTubeAngle(); afx_msg void OnBnClickedButtonReadEncoderTubeHeight(); afx_msg void OnBnClickedButtonEnterCalibration(); afx_msg void OnBnClickedButtonExitCalibration(); afx_msg void OnBnClickedButtonResetSystem(); afx_msg void OnBnClickedButtonCenteradjust(); afx_msg void OnBnClickedButtonParking(); afx_msg void OnBnClickedButtonTubeAngleLowLimit(); afx_msg void OnBnClickedButtonTubeHeightLowLimit(); afx_msg void OnBnClickedButtonEnterSelftest(); afx_msg void OnBnClickedButtonExitSelftest(); afx_msg void OnBnClickedButtonStartSelftest(); afx_msg void OnBnClickedButtonActiveTubeAngleZClear(); afx_msg void OnBnClickedButtonCancelTubeAngleZClear(); afx_msg void OnBnClickedButtonActiveTubeHeightZClear(); afx_msg void OnBnClickedButtonCancelTubeHeightZClear(); afx_msg void OnBnClickedButtonRotateToTubeAngleZAxis(); afx_msg void OnBnClickedButtonMoveToTubeHeightZAxis(); afx_msg void OnBnClickedButtonEmStop(); afx_msg void OnBnClickedButtonSetPcodeParam(); afx_msg void OnBnClickedButtonRotateTubeAnglePhy(); afx_msg void OnBnClickedButtonMoveTubeHeightPhy(); private: void SetExamMode(int mode); void SetWorkstation(); private: // 球管旋转角度 CComboBox m_rotateDirection; // 球管旋转步长 CEdit m_rotateStep; // 球管高度移动方向 CComboBox m_tubeHeightDirection; // 球管高度移动步长 CEdit m_tubeHeightStep; // 球管角度AD值 CEdit m_tubeAngleAD; // 球管角度校正AD数组 CEdit m_tubeAngleCalADs; // 球管角度校正物理值数组 CEdit m_tubeAngleCalPhysicals; // 球管高度AD CEdit m_tubeHeightAD; // 球管高度校正AD数组 CEdit m_tubHeightCalADs; // 球管高度校正物理数组 CEdit m_tubeHeightCalPhysicals; // 探测器高度AD CEdit m_detectorAD; // 探测器高度校正AD数组 CEdit m_detectorCalAds; // 探测器高度校正物理值数组 CEdit m_detectorHeightCalPhysicals; // 球管角度编码器读数 CEdit m_tubeAngleEncoder; // 球管高度编码器读数 CEdit m_tubeHeightEncoder; // PositionCode CEdit m_pcode; public: virtual BOOL OnInitDialog(); afx_msg void OnClose(); afx_msg void OnBnClickedButtonInsertTubeAngle(); afx_msg void OnBnClickedButtonInsertTubeHeight(); afx_msg void OnBnClickedButtonInsertDetectorHeight(); afx_msg void OnBnClickedButtonAutoCaladTubeangle(); afx_msg void OnBnClickedButtonAutoCaladTubeheight(); afx_msg void OnBnClickedTubeAngleSvo(); afx_msg void OnBnClickedButtonTubeheightSvo(); afx_msg void OnBnClickedRadioWall(); afx_msg void OnBnClickedRadioTable(); private: // 当前选中的检查模式 CComboBox m_examMode; CEdit m_autoadTubeAngleCurrent; CEdit m_autoadTubeAngleHighlimit; CEdit m_autoadTubeAngleLowlimit; CEdit m_autoadTubeHeightCurrent; CEdit m_autoadTubeHeightHighlimit; CEdit m_autoadTubeHeightLowlimit; int m_tubeAngleSvoStatus; int m_tubeHeightSvoStatus; CComboBox m_selftestDOF; CEdit m_selftestHighlimit; CEdit m_selftestlowlimit; CEdit m_selftestperiod; CEdit m_selftestdutycycle; CEdit m_selftestRepeatTime; CComboBox m_comboTubeLineSelection; CComboBox m_comboDetectorSelection; float m_fTubeHeightLowPos; float m_fTubeHeightZeroPos; float m_fTubeHorizontalLowPos; float m_fTubeHorizontalZeroPos; public: CButton m_radioWSWall; CButton m_radioWSTable; afx_msg void OnBnClickedButtonResetTubeAngleSavevalue(); afx_msg void OnBnClickedButtonResetTubeAngleEncoderzeroSavevalue(); afx_msg void OnBnClickedButtonTubeLineSaveMinpos(); afx_msg void OnBnClickedButtonTubeLineSaveEncoderzero(); afx_msg void OnCbnSelchangeComboLineSelection(); afx_msg void OnCbnSelendokComboLineSelection(); };