PID算法調(diào)節(jié)C51程序(5)
{
uint8
uint8
uint8
uint8
uint8
uint8
uint8
uint16 Uk_Uint16;
}PIDValueStr;
PIDValueStr xdata PID;
void
{
uint32 idata Temp[3]; //
uint32 idata PostSum; //正數(shù)和
uint32 idata NegSum;
Temp[0] = 0;
PostSum = 0;
NegSum = 0;
if( ADPool.Value_Uint16[UINADCH] > ADPool.Value_Uint16[UFADCH] ) //給定大于反饋,則EK為正數(shù)
{
}
else
{
}
}
{
}
}
else
{
}
else
{
}
{
}
else
{
}
評(píng)論