thermferm/thermferm.c

changeset 314
a919c6dc2100
parent 313
8448fcf3d799
child 315
198f3b4bd0d8
equal deleted inserted replaced
313:8448fcf3d799 314:a919c6dc2100
1320 1320
1321 /* 1321 /*
1322 * PID controller compute 1322 * PID controller compute
1323 */ 1323 */
1324 P_err = sp - pv; 1324 P_err = sp - pv;
1325 // if (P_err < unit->idle_rangeH && P_err > unit->idle_rangeL) { 1325 if (P_err < unit->idle_rangeH && P_err > unit->idle_rangeL) {
1326 // P_err = 0.0; 1326 P_err = 0.0;
1327 // } 1327 }
1328 pTerm = unit->PID_Kp * P_err; 1328 pTerm = unit->PID_Kp * P_err;
1329 1329
1330 /* 1330 /*
1331 * Calculate the intergral state with appropriate limiting 1331 * Calculate the intergral state with appropriate limiting
1332 */ 1332 */

mercurial