| 数据搜索系统,热门电子元器件搜索 |
|
STPS1L60 数据表(PDF) 21 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STPS1L60 数据表(HTML) 21 Page - STMicroelectronics |
|
21 / 34 page ![]() AN3151 Firmware implementation Doc ID 17051 Rev 1 21/34 { s16 Proportional_Term, Integral_Term; s16 Error, output_s16; Error = (PID->Reference - Current_String_Input); // Proportional term computation Proportional_Term = PID->Kp_Gain * Error; // Integral term computation Integral_Term = PID->Ki_Gain * Error; if ( (Integral_FirstRow >= 0) && (Integral_Term >= 0) && (PID- >Max_PID_Output == FALSE) ) // freeze integral term in case of over/underflow { if ( (s32)(Integral_FirstRow + Integral_Term) < 0) {Integral_FirstRow = S16_MAX; } or else {Integral_FirstRow += Integral_Term; } } or else if ((Integral_FirstRow <= 0) && (Integral_Term <= 0) && (PID->Min_PID_Output == FALSE) ) { if ( (s32)(Integral_FirstRow + Integral_Term) > 0) { Integral_FirstRow = -S16_MAX; } or else {Integral_FirstRow += Integral_Term; } } or else if ( (Integral_FirstRow <= 0) && (Integral_Term >= 0) ) {Integral_FirstRow += Integral_Term; } or else if ( (Integral_FirstRow >= 0) && (Integral_Term <= 0) ) {Integral_FirstRow += Integral_Term; } |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |