Changeset 15187
- Timestamp:
- 03/30/13 11:50:31 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r15110 r15187 1388 1388 } 1389 1389 1390 /* 1390 1391 int HandleFtmControlStateChange() 1391 1392 { … … 1400 1401 1401 1402 return StateMachineImp::kSM_KeepState; 1402 } 1403 }*/ 1403 1404 1404 1405 … … 1415 1416 const FTM::DimTriggerRates &dim = d.Ref<FTM::DimTriggerRates>(); 1416 1417 1417 // New run started1418 if (dim.fTriggerRate<0)1419 {1420 fFtmControlTriggerRateTooLow = -1;1421 return GetCurrentState();1422 }1423 1424 // At the end of a run sometimes the trigger rate drops (the1425 // service is trasmitted) before the run is 'officially' finished1426 // by the MCP. Hence, we get a warning. So we have to require1427 1418 // two consecutive low rates. 1428 if (dim.fTriggerRate<1) 1429 fFtmControlTriggerRateTooLow++; 1430 else 1431 fFtmControlTriggerRateTooLow=0; 1419 fFtmControlTriggerRateTooLow = (fFtmControlState&FTM::kFtmStates)==FTM::kRunning && dim.fTriggerRate<1; 1432 1420 1433 1421 const float *brates = dim.fBoardRate; // Board rate … … 1484 1472 // If the FTM is in state Configuring, the clock conditioner 1485 1473 // is always reported to be unlocked 1486 if (d.GetQoS()!=2) 1487 fFtmControlState = d.GetQoS(); 1474 fFtmControlState = d.GetQoS(); 1488 1475 1489 1476 const FTM::DimStaticData &dat = d.Ref<FTM::DimStaticData>(); … … 2379 2366 "Sensor temperature exceeds outside temperature by more than 9°C"); 2380 2367 2381 newerr |= SetError(fFtmControlTriggerRateTooLow> 2 && fDimFtmControl.state()==FTM::State::kTriggerOn,2368 newerr |= SetError(fFtmControlTriggerRateTooLow>1, 2382 2369 "Trigger rate below 1Hz while trigger switched on"); 2383 2370 2384 newerr |= SetError((fDimFtmControl.state()==FTM::State::kTriggerOn||fDimFtmControl.state()==FTM::State::kIdle) && 2385 (fFtmControlState&FTM::kFtmLocked)==0, 2371 newerr |= SetError(fFtmControlState!=FTM::kConfiguring && (fFtmControlState&FTM::kFtmLocked)==0, 2386 2372 "FTM - clock conditioner not locked!"); 2387 2373
Note:
See TracChangeset
for help on using the changeset viewer.