成人精品免费看,大鸡巴插的她嗷嗷叫视频,老熟妇grαnnyhd,我干网日日日日日日日日

dcgdeng
級(jí)別: *
精華主題: * 篇
發(fā)帖數(shù)量: * 個(gè)
工控威望: * 點(diǎn)
下載積分: * 分
在線時(shí)間: (小時(shí))
注冊(cè)時(shí)間: *
最后登錄: *
查看dcgdeng的 主題 / 回貼
樓主  發(fā)表于: 2011-01-24 14:05


#include <REGX51.H>
#include <intrins.h>
#include <string.h>
#include <stdio.h>

typedef struct PID {

        double  SetPoint;          

        double  Proportion;        
        double  Integral;        
        double  Derivative;        

        double  LastError;        

        double  PrevError;          

        double  SumError;        

} PID;
double PIDCalc( PID *pp, double NextPoint )
{
    double  dError,
            Error;

        Error = pp->SetPoint -  NextPoint;        

        pp->SumError += Error;                    

        dError = pp->LastError - pp->PrevError;  

        pp->PrevError = pp->LastError;
        pp->LastError = Error;
        return (pp->Proportion * Error        

            +   pp->Integral * pp->SumError      

            +   pp->Derivative * dError            

        );
}
//////////////////////////////////////////////////////////////////////

void PIDInit (PID *pp)
{
    memset ( pp,0,sizeof(PID));
}



double sensor (void)                

    return 100.0;
}

void actuator(double rDelta)        {}

void man(void)
{
    PID         sPID;                  

    double      rOut;                  

    double      rIn;                  

    PIDInit ( &sPID );                

    sPID.Proportion = 0.5;            

    sPID.Integral   = 0.5;
    sPID.Derivative = 0.0;
    sPID.SetPoint   = 0.3;        

    for (;;) {                        

        rIn = adc ();                

        rOut = PIDCalc ( &sPID,rIn );
        actuator ( rOut );            

    }
}

80666278
級(jí)別: *
精華主題: * 篇
發(fā)帖數(shù)量: * 個(gè)
工控威望: * 點(diǎn)
下載積分: * 分
在線時(shí)間: (小時(shí))
注冊(cè)時(shí)間: *
最后登錄: *
查看80666278的 主題 / 回貼
1樓  發(fā)表于: 2011-01-24 14:31
這就是C語(yǔ)言嗎  我根本就看不明白  所以還要好好學(xué)習(xí)啊

平潭县| 高淳县| 于田县| 寻乌县| 奉化市| 西吉县| 东山县| 资阳市| 贺兰县| 莒南县| 加查县| 屯昌县| 岑溪市| 扎囊县| 忻城县| 七台河市| 栾川县| 华安县| 新宾| 财经| 宜城市| 永吉县| 大渡口区| 德庆县| 宁德市| 黄平县| 扬中市| 米泉市| 休宁县| 连平县| 云阳县| 贵定县| 三亚市| 遵义市| 同心县| 宁明县| 衢州市| 庆元县| 白沙| 田阳县| 阳朔县|