- Timestamp:
- 11/07/11 03:01:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratecontrol.cc
r12435 r12441 69 69 bool fEnabled; 70 70 71 uint64_t fCounter; 72 71 73 pair<Time, int> GetNewState(DimStampedInfo &info) const 72 74 { … … 240 242 void ProcessCamera(const FTM::DimTriggerRates &sdata) 241 243 { 244 if (fCounter++==0) 245 return; 246 242 247 // Caluclate Median and deviation 243 248 vector<float> medb(sdata.fBoardRate, sdata.fBoardRate+40); … … 381 386 fTriggerRate = -1; 382 387 fEnabled = true; 388 fCounter = 0; 383 389 384 390 return kStateSettingGlobalThreshold;
Note:
See TracChangeset
for help on using the changeset viewer.