Changeset 13957 for trunk/FACT++/src
- Timestamp:
- 05/29/12 12:44:30 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r13955 r13957 403 403 DimDescribedState fDimDataLogger; 404 404 DimDescribedState fDimDriveControl; 405 DimDescribedState fDimTimeCheck; 405 406 DimDescribedState fDimMagicWeather; 406 407 DimDescribedState fDimTngWeather; … … 1609 1610 msg << "Moon within the field-of-view of the camera<br/>"; 1610 1611 1612 if (fDimTimeCheck.state()==2) 1613 msg << "Warning NTP time difference of drive PC exceeds 1s.<br/>"; 1614 1611 1615 1612 1616 if (fDimFeedback.state()!=Feedback::State::kCalibrating && … … 1664 1668 { 1665 1669 string col = HTML::kBlue; 1666 if (fMcpConfigurationState!=MCP::State::kIdle && // Idle 1667 fMcpConfigurationState!=MCP::State::kTriggerOn && // Trigger On 1668 fMcpConfigurationState!=MCP::State::kTakingData) // Taking Data 1669 col = HTML::kYellow; 1670 else 1670 switch (fMcpConfigurationState) 1671 { 1672 case MCP::State::kIdle: 1673 col = HTML::kWhite; 1674 break; 1675 case MCP::State::kConfiguring1: 1676 case MCP::State::kConfiguring2: 1677 case MCP::State::kConfiguring3: 1678 case MCP::State::kConfigured: 1679 case MCP::State::kTriggerOn: 1680 col = HTML::kBlue; 1681 break; 1682 case MCP::State::kTakingData: 1683 col = HTML::kBlue; 1671 1684 if (fDimFadControl.state()==FAD::State::kWritingData) 1672 1685 col = HTML::kGreen; 1686 break; 1687 } 1688 1689 const bool other = 1690 fDimRateControl.state()==RateControl::State::kSettingGlobalThreshold || 1691 fDimRateScan.state()!=RateScan::State::kInProgress; 1692 1693 if (other) 1694 col = HTML::kBlue; 1673 1695 1674 1696 out << col << '\t'; 1675 1697 1676 if (fDimRateControl.state()!=RateControl::State::kSettingGlobalThreshold && 1677 fDimRateScan.state()!=RateScan::State::kInProgress) 1698 if (!other) 1678 1699 { 1679 1700 switch (fMcpConfigurationState) … … 1987 2008 fDimDataLogger ("DATA_LOGGER"), 1988 2009 fDimDriveControl("DRIVE_CONTROL"), 2010 fDimTimeCheck ("TIME_CHECK"), 1989 2011 fDimMagicWeather("MAGIC_WEATHER"), 1990 2012 fDimTngWeather ("TNG_WEATHER"), … … 2003 2025 fDimDataLogger.Subscribe(*this); 2004 2026 fDimDriveControl.Subscribe(*this); 2027 fDimTimeCheck.Subscribe(*this); 2005 2028 fDimMagicWeather.Subscribe(*this); 2006 2029 fDimTngWeather.Subscribe(*this);
Note:
See TracChangeset
for help on using the changeset viewer.