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

📄 define.h

📁 在windows下对Flock of Bird 跟踪器编程的源代码
💻 H
字号:
/*=====================================================
00002 *
00003 *  Project: Flock of Birds Library
00004 *  
00005 *  
00006 *  Date:    02/08/2002
00007 *
00008 *  Comment: 
00009 *
00010 *  
00011 *  
00012 *  
00013 *  
00014 *  
00015 *
00016 *=====================================================*/

#ifndef __Define_h_
#define __Define_h_

/*=====================================================*/
typedef enum 
{
	POINTM,
	CONTINUOUS, 
	STREAM
}_Mode;

typedef enum 
{
	POS, 
	ANGLE, 
	MATRIX, 
	POSANGLE, 
	POSMATRIX, 
	FACTORY_USE_ONLY, 
	QUATER, 
	POSQUATER
}_Type;

typedef enum 
{
	_36_INCHES, 
	_72_INCHES, 
	_144_INCHES = 1
}_Scaling;

typedef enum 
{
	F_UP_RIGHT, 
	F_UP_LEFT,
	F_DOWN_LEFT, 
	F_DOWN_RIGHT, 
	B_UP_RIGHT, 
	B_UP_LEFT, 
	B_DOWN_LEFT, 
	B_DOWN_RIGHT
}_Hemisphere;


typedef enum 
{
	INCHES, 
	CM, 
	MM
}_Unit;

/*=====================================================*/

#define DTR (float)(3.141593/180.0)     /* degrees to radians */
#define FTW (float)32768.0              /* float to word integer */
#define WTF (float)(1.0/32768.0)        /* float to word integer */
#define ANGK (float)(180.0/32768.0)     /* integer to degrees */
#define POSK36 (float)(36.0/32768.0)    /* integer to inches */
#define POSK72 (float)(72.0/32768.0)    /* integer to inches */
#define POSK144 (float)(144.0/32768.0)  /* integer to inches ER Controller */

#define MAX_BUFFER_SIZE 256

const double I_TO_CM = 2.54;    /* inches to centimeters */
const double I_TO_MM = 25.4;    /* inches to millimeters */
const double CM_TO_I = 1/2.54;  /* centimeters to inches */
const double MM_TO_I = 1/25.4;  /* millimeters to inches */
const double MM_TO_CM = 1/10;   /* millimeters to centimeters */
const double CM_TO_MM = 10;     /* centimeters to millimeters */


#define ON              1
#define OFF             0

#define TRUE			1
#define FALSE			0

#define YES             1
#define NO              0

#endif // __Define_h_

⌨️ 快捷键说明

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