⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 control.h

📁 上次我传的倒立摆的控制程序,不是我的最终的程序,本程序采用VC++编程,定时器为多媒体控制器,(控制时间可到达5ms),控制算法用的是最优控制,
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -