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

📄 up_balltrackdlg.h

📁 足球机器人功能demo
💻 H
字号:
// UP_BALLTRACKDlg.h : header file
//

#if !defined(AFX_UP_BALLTRACKDLG_H__7428F2F3_1FE5_4FDD_A47A_133BECD0E950__INCLUDED_)
#define AFX_UP_BALLTRACKDLG_H__7428F2F3_1FE5_4FDD_A47A_133BECD0E950__INCLUDED_

#include "Catching.h"
#include "Finding.h"
#include "Demo.h"
#include "UPOverLookBeh.h"
#include "CaptureVideo.h"
#include "SerialCom.h"
#include "NetCmt.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CUP_BALLTRACKDlg dialog

class CUP_BALLTRACKDlg : public CDialog
{
// Construction
public:
	CUP_BALLTRACKDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CUP_BALLTRACKDlg)
	enum { IDD = IDD_UP_BALLTRACK_DIALOG };
	CListBox	m_cBehList;
	CStatic	m_cOverlookView;
	CListBox	m_cOverlookList;
	CListBox	m_cAheadList;
	CComboBox	m_cBaudCombo;
	CComboBox	m_cOverlookCombo;
	CComboBox	m_cAheadCombo;
	CStatic	m_cAheadView;
	BOOL	m_Uenb;
	BOOL	m_Venb;
	int		m_nPort;
	BOOL	m_Yenb;
	int		m_Umax;
	int		m_Umin;
	int		m_Vmax;
	int		m_Vmin;
	int		m_Ymax;
	int		m_Ymin;
	int		m_iBothSpeed;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CUP_BALLTRACKDlg)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	void m_UpdateParam(YUVParam* inParam);
	UINT m_ProgramState;
	void ColorRecord();
	HICON m_hIcon;
	CString m_strTemp;
	COLORREF m_color;
	bool m_bClrCaping;
	bool m_bGetClr;
	bool m_firstClr;
	int Y;
	int U;
	int V;
	YUVParam m_param;
	YUVParam m_AheadParam,m_OverlookParam;

	CCaptureVideo* m_pAheadCap;
	CCaptureVideo* m_pOverlookCap;
	CSerialCom m_com;
	CVoyCmd m_cmd;

	CDemo m_Demo;
	CFinding m_finding;
	CCatching m_catching;
	UPOverLookBeh m_overbeh;
	IBehavior m_idle;

	CNetCmt m_netcmt;
	// Generated message map functions
	//{{AFX_MSG(CUP_BALLTRACKDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	afx_msg void OnCloseoverlook();
	afx_msg void OnOpenahead();
	afx_msg void OnCloseahead();
	afx_msg void OnOpenoverlook();
	afx_msg void OnYenable();
	afx_msg void OnUenable();
	afx_msg void OnVenable();
	afx_msg void OnForward();
	afx_msg void OnBackward();
	afx_msg void OnTurnleft();
	afx_msg void OnTurnright();
	afx_msg void OnBrake();
	afx_msg void OnSetspeed();
	afx_msg void OnOpen();
	afx_msg void OnSetoverlookparam();
	afx_msg void OnSetaheadparam();
	afx_msg void OnClearparam();
	afx_msg void OnAheadcatch();
	afx_msg void OnOverlookcatch();
	afx_msg void OnRemovebeh();
	afx_msg void OnClearshow();
	afx_msg void OnAheadfind();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_UP_BALLTRACKDLG_H__7428F2F3_1FE5_4FDD_A47A_133BECD0E950__INCLUDED_)

⌨️ 快捷键说明

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