123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- #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()
- 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);
- 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();
- private:
- // 当前选中的检查模式
- CComboBox m_examMode;
- public:
- afx_msg void OnBnClickedButtonInsertTubeAngle();
- afx_msg void OnBnClickedButtonInsertTubeHeight();
- afx_msg void OnBnClickedButtonInsertDetectorHeight();
- private:
- // 当前物理角度
- CEdit m_autoadTubeAngleCurrent;
- CEdit m_autoadTubeAngleHighlimit;
- CEdit m_autoadTubeAngleLowlimit;
- CEdit m_autoadTubeHeightCurrent;
- CEdit m_autoadTubeHeightHighlimit;
- CEdit m_autoadTubeHeightLowlimit;
- int m_tubeAngleSvoStatus;
- int m_tubeHeightSvoStatus;
- public:
- afx_msg void OnBnClickedButtonAutoCaladTubeangle();
- afx_msg void OnBnClickedButtonAutoCaladTubeheight();
- afx_msg void OnBnClickedTubeAngleSvo();
- afx_msg void OnBnClickedButtonTubeheightSvo();
- private:
- CComboBox m_selftestDOF;
- CEdit m_selftestHighlimit;
- CEdit m_selftestlowlimit;
- CEdit m_selftestperiod;
- CEdit m_selftestdutycycle;
- CEdit m_selftestRepeatTime;
- };
|