📄 motordlgdebg.h
字号:
#if !defined(AFX_MOTORDLGDEBG_H__4FC0B88A_5978_479F_8E19_E1165365EFA7__INCLUDED_)
#define AFX_MOTORDLGDEBG_H__4FC0B88A_5978_479F_8E19_E1165365EFA7__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MotorDlgDebg.h : header file
//
#include "MotorCtrol.h"
/////////////////////////////////////////////////////////////////////////////
// MotorDlgDebg dialog
class MotorDlgDebg : public CDialog
{
// Construction
public:
double GetDecrate();
double GetAccrate();
MotorDlgDebg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(MotorDlgDebg)
enum { IDD = IDD_MOTORDIALOG_DEBG };
CComboBox m_cModlgdebDec;
CComboBox m_cModlgdebAcc;
CComboBox m_cModlgdebStype;
CComboBox m_cModlgdebRtype;
CComboBox m_cModlgdebMtype;
CComboBox m_cModlgdebDirect;
double m_dModlgdebSpeed;
double m_dModlgdebTangle;
double m_dModlgdebRealtangle;
//}}AFX_DATA
////////////////
MotorCtrol motordebgDlg;//电机控制类
double m_ModlgdebPps; //控制卡发送脉冲速率
long m_lModlgdebPlus; //控制卡发送脉冲个数
int m_nModlgdebDirect; //电机转向
int m_nModlgdebDirectTem; //电机转向暂存变量
int m_nModlgdebMtype; //电机运动类型,点位-1,连续-0
int m_nModlgdebRtype; //电机速度类型,常速-1,快速-0
int m_nModlgdebStype; //电机制动类型,立即-1,光滑-0
int m_nModlgdebAcc; //电机加速度选择值
int m_nModlgdebDec; //电机减速度选择值
// CEdit *m_pModlgdebTangle; //指向电机转角编辑框
// CEdit *m_pModlgdebRealTane; //指向电实际机转角编辑框
// CEdit *m_pModlgdebRealTanb; //指向电机实际转角按钮
BOOL m_bSelfchekflag;//设备自检标志
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(MotorDlgDebg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(MotorDlgDebg)
virtual BOOL OnInitDialog();
afx_msg void OnBumodlgdebRun();
afx_msg void OnBumodlgdebPause();
afx_msg void OnBumodlgdebRealtangle();
afx_msg void OnBumodlgdebStop();
afx_msg void OnSelendokComodlgdebMtype();
afx_msg void OnBumodlgdebIni();
afx_msg void OnBumodlgdebExit();
afx_msg void OnSelendokComodlgdebRtype();
afx_msg void OnSelendokComodlgdebStype();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MOTORDLGDEBG_H__4FC0B88A_5978_479F_8E19_E1165365EFA7__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -