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

📄 balltracecommand.h

📁 关于机器人的手臂程序
💻 H
字号:

// File: BallTraceCommand.h
// Purpose: 
// Created: 01-DEC-2005  by Grandar
//
// Comments:
// General comments go here, for example:
// - command line options
// - file formats
// - rules and conventions
// - descriptions of the main data structures
//
// Revisions:
// 01-DEC-2005 Jiang
// Added ... 
//
#ifndef BALLTRACE_COMMAND_H__
#define BALLTRACE_COMMAND_H__

#include "IASRSystem.h"

#define UNKNOWN		0
#define	OUTSIGHT	1
#define HORZ_LEFT	(1<<1)
#define HORZ_RIGHT	(1<<2)
#define VERT_FOR	(1<<3)
#define VERT_BACK	(1<<4)
#define HORZ_MIDDLE	(1<<5)
#define VERT_MIDDLE	(1<<6)

#define	X1	110
#define	X2	210
#define	Y1	130
#define	Y2	180

typedef LONG	CUR_STATE;

typedef struct 
{	
	CUR_STATE	nState;
	int	nBaseSpeed;
	int	nAddSpeed;
	int	nDiffSpeed;
	int	nLastSpeed;
}TRACER_PARAM;

interface IASRFootball;
interface IASRMotion;
interface IASRImage;
class  CBallTraceCommand:public IASRCommand
{
public:
	BOOL bMove;
	int ID[MAXPCUBE];
	void Work();
	int m_Step;
	virtual HERROR  __stdcall Execute(LPVOID pObject);

	int speedLeft;
	int speedRight;

	CBallTraceCommand();
	virtual ~CBallTraceCommand();
	//static unsigned __stdcall CounterProc(LONG nOwner,void* pResult);
private:
    void 	TraceDecide(int nArea,int x,int y);
	TRACER_PARAM	m_TraceParam;
	IASRFootball* m_pImageProcess;
	IASRImage*	      m_pImage;
	IASRMotion*	m_pMotion;
	inline	void	Keep();
	long allCodeRight;
	long allCodeLeft;
};

#endif

⌨️ 快捷键说明

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