Changeset 13746
- Timestamp:
- 05/16/12 09:06:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ratecontrol.cc
r13718 r13746 59 59 DimStampedInfo fFTM; 60 60 DimStampedInfo fRates; 61 //DimStampedInfo fStatic;61 DimStampedInfo fStatic; 62 62 DimStampedInfo fRateScan; 63 63 … … 371 371 372 372 static vector<uint8_t> counter(160); 373 /*374 373 if (curr==&fStatic) 375 374 { … … 385 384 return; 386 385 } 387 */ 386 388 387 if (curr==&fRates) 389 388 { … … 413 412 { 414 413 if (!fTriggerOn) 414 { 415 Info("Trigger not switched on... CALIBRATE command ignored."); 415 416 return kStateGlobalThresholdSet; 417 } 416 418 417 419 const int32_t val[2] = { -1, fThresholdReference }; … … 424 426 fEnabled = true; 425 427 fCounter = 0; 428 429 ostringstream out; 430 out << "Rate calibration started at a threshold of " << fThresholdReference << " with a target rate of " << fTargetRate << " Hz"; 431 Info(out); 426 432 427 433 return kStateSettingGlobalThreshold; … … 491 497 Out() << "V" << fStatusDim.second/100 << 'r' << fStatusDim.second%100 << endl; 492 498 493 PrintState(fStatusFTM, "FTM_CONTROL"); 499 PrintState(fStatusRS, "RATE_SCAN"); 500 PrintState(fStatusFTM, "FTM_CONTROL"); 494 501 495 502 return GetCurrentState(); … … 550 557 fFTM("FTM_CONTROL/STATE", (void*)NULL, 0, this), 551 558 fRates("FTM_CONTROL/TRIGGER_RATES", (void*)NULL, 0, this), 559 fStatic("FTM_CONTROL/STATIC_DATA", (void*)NULL, 0, this), 552 560 fRateScan("RATE_SCAN/STATE", (void*)NULL, 0, this)/*, 553 fStatic("FTM_CONTROL/STATIC_DATA", (void*)NULL, 0, this)/*,554 561 fDimData("RATE_SCAN/DATA", "I:1;F:1;F:1;F:1;F:40;F:160", ""), 555 562 fDimProc("RATE_SCAN/PROCESS_DATA", "I:1;I:1;I:1",
Note:
See TracChangeset
for help on using the changeset viewer.