最近购买了一块PLC ACLighting的开发套件,在研究代码时遇到了问题,如下:
CNTL_2P2Z_CLACoefStruct_LED.b2 = DgainLED; //DgainLED = 0.0000000300
CNTL_2P2Z_CLACoefStruct_LED.b1 = IgainLED – PgainLED – DgainLED – DgainLED;//0.05-1.0-0.0000000300-0.0000000300 IgainLED = 0.05 PgainLED = 1.0
CNTL_2P2Z_CLACoefStruct_LED.b0 = PgainLED + IgainLED + DgainLED;//1.0+0.05+0.0000000300
CNTL_2P2Z_CLACoefStruct_LED.a2 = (float)0.0;
CNTL_2P2Z_CLACoefStruct_LED.a1 = (float)1.0;
CNTL_2P2Z_CLACoefStruct_LED.max =(float)0.95;
CNTL_2P2Z_CLACoefStruct_LED.min =(float)0.0;
b2 b1 b0 a2 a1 max min这几个参数是如何计算出来的呢,请高手指点迷津。