Changeset 12351 for trunk/FACT++
- Timestamp:
- 10/31/11 19:02:47 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/feedback.cc
r12350 r12351 324 324 const Time tm0 = Time(); 325 325 326 constdouble T21 = fT>0 ? fT : (tm0-fStartTime).total_microseconds()/1000000.;326 /*const*/ double T21 = fT>0 ? fT : (tm0-fStartTime).total_microseconds()/1000000.; 327 327 const double T10 = fT21; 328 328 fT21 = T21; … … 372 372 // => Kd = 0.1 * gain/20s = 0.00003 373 373 374 fKp = 0; 375 fKd = 0; 376 fKi = 0.00003*20; 377 T21 = 1; 378 379 //valarray<double> correction = - Kp*(PV[2] - PV[1]) + Ki * dT * (SP-PV[2]) - Kd/dT * (PV[2] - 2*PV[1] + PV[0]); 374 380 //valarray<double> correction = 375 381 // - Kp * (PV[2] - PV[1]) … … 504 510 505 511 PrintState(fStatusFAD, "FAD_CONTROL"); 512 PrintState(fStatusFSC, "FSC_CONTROL"); 506 513 PrintState(fStatusBias, "BIAS_CONTROL"); 507 514
Note:
See TracChangeset
for help on using the changeset viewer.