Changeset 11982 for trunk/FACT++/src/mcp.cc
- Timestamp:
- 09/06/11 12:49:44 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/mcp.cc
r11619 r11982 55 55 kStateConfiguring2, 56 56 kStateConfiguring3, 57 kStateConfiguring4, 57 58 kStateConfigured, 58 59 }; … … 271 272 } 272 273 274 Time fConfigTimer; 275 273 276 int Execute() 274 277 { … … 317 320 return GetCurrentState(); 318 321 322 fConfigTimer = Time(); 323 324 return kStateConfiguring4; 325 } 326 327 if (GetCurrentState()==kStateConfiguring4) 328 { 329 // We need some delay to ensure that after sending the 330 // "Enable Trigger Line" command to all FADs the really 331 // have all already enabled the trigger line 332 if (Time()-fConfigTimer<boost::posix_time::milliseconds(100)) 333 return kStateConfiguring4; 334 319 335 Message("Starting Trigger (FTM)"); 320 336 Dim::SendCommand("FTM_CONTROL/START_RUN"); … … 391 407 392 408 AddStateName(kStateConfiguring3, "Configuring3", 409 "."); 410 411 AddStateName(kStateConfiguring4, "Configuring4", 393 412 "."); 394 413
Note:
See TracChangeset
for help on using the changeset viewer.