Changeset 12428 for trunk/FACT++
- Timestamp:
- 11/06/11 18:09:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/mcp.cc
r12405 r12428 65 65 pair<Time, int> fStatusFAD; 66 66 pair<Time, int> fStatusLog; 67 pair<Time, int> fStatusRC; 67 68 68 69 DimStampedInfo fDim; … … 70 71 DimStampedInfo fFAD; 71 72 DimStampedInfo fLog; 73 DimStampedInfo fRC; 72 74 73 75 pair<Time, int> GetNewState(DimStampedInfo &info) const … … 104 106 { 105 107 fStatusLog = GetNewState(fLog); 108 return; 109 } 110 111 if (curr==&fRC) 112 { 113 fStatusRC = GetNewState(fRC); 106 114 return; 107 115 } … … 163 171 PrintState(fStatusFAD, "FAD_CONTROL"); 164 172 PrintState(fStatusLog, "DATA_LOGGER"); 173 PrintState(fStatusRC, "RATE_CONTROL"); 165 174 166 175 return GetCurrentState(); … … 308 317 return GetCurrentState(); 309 318 319 Message("Starting Rate Control"); 320 Dim::SendCommand("RATE_CONTROL/START_DATA_TAKING"); 321 310 322 Message("Starting FAD"); 311 323 ConfigureFAD(); … … 316 328 { 317 329 if (fStatusFTM.second != FTM::kConfigured || 318 fStatusFAD.second != FAD::kConfigured) 330 fStatusFAD.second != FAD::kConfigured || 331 fStatusRC.second < 7) 319 332 return GetCurrentState(); 320 333 … … 364 377 fFTM("FTM_CONTROL/STATE", (void*)NULL, 0, this), 365 378 fFAD("FAD_CONTROL/STATE", (void*)NULL, 0, this), 366 fLog("DATA_LOGGER/STATE", (void*)NULL, 0, this) 379 fLog("DATA_LOGGER/STATE", (void*)NULL, 0, this), 380 fRC("RATE_CONTROL/STATE", (void*)NULL, 0, this) 367 381 { 368 382 // ba::io_service::work is a kind of keep_alive for the loop.
Note:
See TracChangeset
for help on using the changeset viewer.