Changeset 12441


Ignore:
Timestamp:
11/07/11 03:01:36 (13 years ago)
Author:
tbretz
Message:
Added a counter to skip the first rate report - for stability reasons.
File:
1 edited

Legend:

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

    r12435 r12441  
    6969    bool fEnabled;
    7070
     71    uint64_t fCounter;
     72
    7173    pair<Time, int> GetNewState(DimStampedInfo &info) const
    7274    {
     
    240242    void ProcessCamera(const FTM::DimTriggerRates &sdata)
    241243    {
     244        if (fCounter++==0)
     245            return;
     246
    242247        // Caluclate Median and deviation
    243248        vector<float> medb(sdata.fBoardRate, sdata.fBoardRate+40);
     
    381386        fTriggerRate  = -1;
    382387        fEnabled      = true;
     388        fCounter      = 0;
    383389
    384390        return kStateSettingGlobalThreshold;
Note: See TracChangeset for help on using the changeset viewer.