control.h

来自「上次我传的倒立摆的控制程序,不是我的最终的程序,本程序采用VC++编程,定时器为」· C头文件 代码 · 共 63 行

H
63
字号
#if !defined(AFX_CONTROL_H__787B81AE_A341_456F_9669_F93A77E8D992__INCLUDED_)
#define AFX_CONTROL_H__787B81AE_A341_456F_9669_F93A77E8D992__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Control.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CControl dialog

class CControl : public CDialog
{
// Construction
public:
		double v_ctrl;
	short v;
	int m_nSharp;
	double angle1;

	double angle0;
    double posdot;
    double angledot;
	double pos;
	double angle;
    double pos0;
	CControl(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CControl)
	enum { IDD = IDD_DIALOG_CONTROL };
	double	m_jiaodu;
	double	m_sudu;
	double	m_weizhi;
	double	m_jiaosudu;
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CControl)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CControl)
	afx_msg void OnButtonMove();
	afx_msg void OnButtonStop();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CONTROL_H__787B81AE_A341_456F_9669_F93A77E8D992__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?