Changeset 13756 for trunk/FACT++


Ignore:
Timestamp:
05/16/12 10:35:47 (12 years ago)
Author:
tbretz
Message:
Changed the blocking from patch-wise to board-wise.
File:
1 edited

Legend:

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

    r13752 r13756  
    157157        DimClient::sendCommandNB("FTM_CONTROL/SET_THRESHOLD", (void*)val, 8);
    158158
    159         fBlock[idx] = true;
     159        fBlock[idx/4] = true;
    160160    }
    161161
     
    218218            }
    219219
     220            if (fBlock[i])
     221            {
     222                fBlock[i] = false;
     223                continue;
     224            }
     225
    220226            for (int j=0; j<4; j++)
    221227            {
    222                 if (fBlock[i*4+j])
    223                 {
    224                     fBlock[i*4+j] = false;
    225                     continue;
    226                 }
    227 
    228228                // For the noise pixel correct down to median+3*deviation
    229229                if (maxi==j)
     
    549549public:
    550550    StateMachineRateControl(ostream &out=cout) : StateMachineDim(out, "RATE_CONTROL"),
    551         fTriggerOn(false), fBlock(160),
     551        fTriggerOn(false), fBlock(40),
    552552        fStatusDim(make_pair(Time(), -2)),
    553553        fStatusFTM(make_pair(Time(), -2)),
Note: See TracChangeset for help on using the changeset viewer.