invalid redeclaration of type name "PID"
赵何祺 2013-06-14 06:08:58 #include "MK60N512VMD100.h"
/*=====================================
PID结构体
Steering:舵机PID结构
Dynamo:电机PID结构
======================================*/
typedef struct
{
unsigned int SetPoint;
unsigned int LastError;
unsigned int PrevError;
double Kp;
double Ki;
double Kd;
}PID;
static PID Steering,Dynamo;
void PID_Init();
unsigned int PID_Control(PID* pid,unsigned int NextPoint,double Kp,double Ki,double Kd);
void Steering_Control(unsigned int SetPoint,float difference,double Kp,double Ki,double Kd);
void Dynamo_Control(unsigned int SetPoint,double Kp,double Ki,double Kd);
不知道问什么它就报错了
Error[Pe256]: invalid redeclaration of type name "PID" (declared at line 16) C:\Users\zhq\Desktop\新建文件夹\小车整合3.0\src\Sources\H\Component_H\arithmetic0.h 16