Changeset 15055 for trunk/FACT++/src
- Timestamp:
- 03/13/13 14:24:49 (12 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/HeadersFTM.h
r14503 r15055 46 46 kConfigError1 = 0x101, 47 47 kConfigError2 = 0x102, 48 kConfigError3 = 0x103,48 //kConfigError3 = 0x103, 49 49 }; 50 50 } -
trunk/FACT++/src/ftmctrl.cc
r14956 r15055 1165 1165 } 1166 1166 1167 bool IsLocked() const { return fHeader.fState&FTM::kFtmLocked; } 1167 // If fState==2, the clock conditioner will always be reported as unlocked 1168 //bool IsLocked() const { return fHeader.fState&FTM::kFtmLocked; } 1168 1169 1169 1170 int GetCounter(FTM::Types type) { return fCounter[type]; } … … 1957 1958 return FTM::State::kConfigError2; 1958 1959 // ====================== 1960 // There is no simple way to check if the clock 1961 // conditioner is locked. Every message send to request a static 1962 // data block may end up in the same buffer at the FTM, thus 1963 // the result will be that it is in state Configuring, which 1964 // will always return the clock conditioner to be unlocked. 1959 1965 /* 1960 1966 if (!fFTM.IsLocked()) … … 1969 1975 fCounterStat = fFTM.GetCounter(FTM::kStaticData); 1970 1976 1971 T::Info(" ==> TODO: Update run in database!");1972 1977 T::Message("Sending new configuration was successfull."); 1973 1978 … … 1977 1982 case FTM::State::kConfigError1: 1978 1983 case FTM::State::kConfigError2: 1979 case FTM::State::kConfigError3:1984 //case FTM::State::kConfigError3: 1980 1985 break; 1981 1986 … … 1991 1996 } 1992 1997 1993 // FIXME: Do we have to check the state of the clock conditioner here? 1994 1995 if (T::GetCurrentState()==FTM::State::kConfigured && 1998 /* 1999 if (T::GetCurrentState()==FTM::State::kConfigured) 1996 2000 fFTM.GetState()==ConnectionFTM::kTriggerOn) 1997 2001 { … … 2004 2008 return FTM::State::kTriggerOn; 2005 2009 } 2006 2010 */ 2007 2011 return T::GetCurrentState(); 2008 2012 } … … 2043 2047 T::AddStateName(FTM::State::kConfigError1, "ErrorInConfig1", "Unexpected state received from FTM"); 2044 2048 T::AddStateName(FTM::State::kConfigError2, "ErrorInConfig2", "Unexpected state received from FTM"); 2045 T::AddStateName(FTM::State::kConfigError3, "ClockCondError", "Clock conditioner not locked");2049 //T::AddStateName(FTM::State::kConfigError3, "ClockCondError", "Clock conditioner not locked"); 2046 2050 2047 2051 // FTM Commands
Note:
See TracChangeset
for help on using the changeset viewer.