Changeset 12351 for trunk/FACT++


Ignore:
Timestamp:
10/31/11 19:02:47 (13 years ago)
Author:
tbretz
Message:
Set some fixed control loop parameters as determined in Zurich; output also the state of the FSC
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/feedback.cc

    r12350 r12351  
    324324                const Time tm0 = Time();
    325325
    326                 const double T21 = fT>0 ? fT : (tm0-fStartTime).total_microseconds()/1000000.;
     326                /*const*/ double T21 = fT>0 ? fT : (tm0-fStartTime).total_microseconds()/1000000.;
    327327                const double T10 = fT21;
    328328                fT21 = T21;
     
    372372                            // => Kd = 0.1  * gain/20s = 0.00003
    373373
     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]);
    374380                            //valarray<double> correction =
    375381                            // -      Kp * (PV[2] - PV[1])
     
    504510
    505511        PrintState(fStatusFAD,  "FAD_CONTROL");
     512        PrintState(fStatusFSC,  "FSC_CONTROL");
    506513        PrintState(fStatusBias, "BIAS_CONTROL");
    507514
Note: See TracChangeset for help on using the changeset viewer.