#include "IQmathLib.h"

#ifndef __ROTORPOSITION_H__
#define __ROTORPOSITION_H__
///////////start of RotorPosition///////////
typedef struct
{
	unsigned int ADNum;
	unsigned char FlagStart;
	_iq Angle;
	_iq coe;
	_iq vlevel;
	_iq vdc;
	unsigned int NP;
	_iq ID;
	_iq IQ;
	_iq DOUT;
	_iq QOUT;
	unsigned char Switch;
	unsigned char Finish;
	unsigned int RecNum;
	unsigned int TimeNum[19];
	_iq Record[36][5];
} POSITION;

#define POSITION_DEFAULTS {	    0,\
								0,\
								0,\
								0,\
								0,\
								0,\
								0,\
								0,\
								0,\
								0,\
								0,\
								100,\
								0,\
								0,\
								{0,3,\
								4, 5, 6, 7,\
								10,11,12,13,\
								16,17,18,19,\
								22,23,24,25,\
								26},\
								{0},\
							}
/////////////end of RotorPosition///////////

extern void PNCur(POSITION *d_pos);

#endif



