Changeset 14622 for trunk/FACT++
- Timestamp:
- 11/14/12 10:06:21 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r14509 r14622 1 #ifdef HAVE_ LIBNOVA1 #ifdef HAVE_NOVA 2 2 #include <libnova/solar.h> 3 3 #include <libnova/lunar.h> … … 19 19 #include "Configuration.h" 20 20 #include "Console.h" 21 #include "Converter.h"22 21 #include "PixelMap.h" 23 22 #include "DimWriteStatistics.h" … … 547 546 DimDescribedState fDimFadControl; 548 547 DimDescribedState fDimFscControl; 548 DimDescribedState fDimAgilentControl; 549 DimDescribedState fDimPwrControl; 550 DimDescribedState fDimLidControl; 549 551 DimDescribedState fDimRateControl; 550 552 DimDescribedState fDimRateScan; … … 1834 1836 int Print() const 1835 1837 { 1836 Out() << fDimDNS << endl; 1837 Out() << fDimMcp << endl; 1838 Out() << fDimControl << endl; 1839 Out() << fDimDataLogger << endl; 1840 Out() << fDimDriveControl << endl; 1841 Out() << fDimTimeCheck << endl; 1842 Out() << fDimFadControl << endl; 1843 Out() << fDimFtmControl << endl; 1844 Out() << fDimBiasControl << endl; 1845 Out() << fDimFeedback << endl; 1846 Out() << fDimRateControl << endl; 1847 Out() << fDimFscControl << endl; 1848 Out() << fDimMagicWeather << endl; 1849 Out() << fDimTngWeather << endl; 1850 Out() << fDimRateScan << endl; 1851 Out() << fDimChat << endl; 1852 Out() << fDimSkypeClient << endl; 1838 Out() << fDimDNS << endl; 1839 Out() << fDimMcp << endl; 1840 Out() << fDimControl << endl; 1841 Out() << fDimDataLogger << endl; 1842 Out() << fDimDriveControl << endl; 1843 Out() << fDimTimeCheck << endl; 1844 Out() << fDimFadControl << endl; 1845 Out() << fDimFtmControl << endl; 1846 Out() << fDimBiasControl << endl; 1847 Out() << fDimFeedback << endl; 1848 Out() << fDimRateControl << endl; 1849 Out() << fDimFscControl << endl; 1850 Out() << fDimAgilentControl << endl; 1851 Out() << fDimPwrControl << endl; 1852 Out() << fDimLidControl << endl; 1853 Out() << fDimMagicWeather << endl; 1854 Out() << fDimTngWeather << endl; 1855 Out() << fDimRateScan << endl; 1856 Out() << fDimChat << endl; 1857 Out() << fDimSkypeClient << endl; 1853 1858 1854 1859 return GetCurrentState(); … … 2113 2118 { 2114 2119 const mysqlpp::StoreQueryResult res = 2115 Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM source ").store();2120 Database(fDatabase).query("SELECT fSourceName, fRightAscension, fDeclination FROM source WHERE fSourceTypeKEY=1").store(); 2116 2121 2117 2122 out << HTML::kWhite << '\t'; … … 2266 2271 "<b><#darkred>DIM network not available</#></b>"); 2267 2272 newerr |= SetError(!fDimControl.online(), 2268 "<b> dimctrl offline</b>");2273 "<b>no dimctrl server available</b>"); 2269 2274 newerr |= SetError(fDimDataLogger.state()<20 || fDimDataLogger.state()>40, 2270 2275 "<b>datalogger not ready</b>"); … … 2713 2718 out << HTML::kGreen << '\t' << fDimDNS.version() << '\n'; 2714 2719 2715 out << GetStateHtml(fDimControl, 0);2716 out << GetStateHtml(fDimMcp, 4);2717 out << GetStateHtml(fDimDataLogger, 1);2718 out << GetStateHtml(fDimDriveControl, 2);2719 out << GetStateHtml(fDimTimeCheck, 1);2720 out << GetStateHtml(fDimControl, 0); 2721 out << GetStateHtml(fDimMcp, 4); 2722 out << GetStateHtml(fDimDataLogger, 1); 2723 out << GetStateHtml(fDimDriveControl, 2); 2724 out << GetStateHtml(fDimTimeCheck, 1); 2720 2725 out << GetStateHtml(fDimFadControl, FAD::State::kConnected); 2721 2726 out << GetStateHtml(fDimFtmControl, FTM::State::kConnected); 2722 2727 out << GetStateHtml(fDimBiasControl, BIAS::State::kConnected); 2723 out << GetStateHtml(fDimFeedback, 4); 2724 out << GetStateHtml(fDimRateControl, 4); 2725 out << GetStateHtml(fDimFscControl, 2); 2726 out << GetStateHtml(fDimRateScan, 4); 2727 out << GetStateHtml(fDimMagicWeather, 2); 2728 out << GetStateHtml(fDimTngWeather, 2); 2729 out << GetStateHtml(fDimChat, 0); 2730 out << GetStateHtml(fDimSkypeClient, 1); 2728 out << GetStateHtml(fDimFeedback, 4); 2729 out << GetStateHtml(fDimRateControl, 4); 2730 out << GetStateHtml(fDimFscControl, 2); 2731 out << GetStateHtml(fDimAgilentControl, 3); 2732 out << GetStateHtml(fDimPwrControl, 3); 2733 out << GetStateHtml(fDimLidControl, 2); 2734 out << GetStateHtml(fDimRateScan, 4); 2735 out << GetStateHtml(fDimMagicWeather, 2); 2736 out << GetStateHtml(fDimTngWeather, 2); 2737 out << GetStateHtml(fDimChat, 0); 2738 out << GetStateHtml(fDimSkypeClient, 1); 2731 2739 2732 2740 string col = HTML::kRed; … … 2777 2785 fFreeSpace(UINT64_MAX), 2778 2786 // --- 2779 fDimMcp ("MCP"), 2780 fDimDataLogger ("DATA_LOGGER"), 2781 fDimDriveControl("DRIVE_CONTROL"), 2782 fDimTimeCheck ("TIME_CHECK"), 2783 fDimMagicWeather("MAGIC_WEATHER"), 2784 fDimTngWeather ("TNG_WEATHER"), 2785 fDimFeedback ("FEEDBACK"), 2786 fDimBiasControl ("BIAS_CONTROL"), 2787 fDimFtmControl ("FTM_CONTROL"), 2788 fDimFadControl ("FAD_CONTROL"), 2789 fDimFscControl ("FSC_CONTROL"), 2790 fDimRateControl ("RATE_CONTROL"), 2791 fDimRateScan ("RATE_SCAN"), 2792 fDimChat ("CHAT"), 2793 fDimSkypeClient ("SKYPE_CLIENT") 2787 fDimMcp ("MCP"), 2788 fDimDataLogger ("DATA_LOGGER"), 2789 fDimDriveControl ("DRIVE_CONTROL"), 2790 fDimTimeCheck ("TIME_CHECK"), 2791 fDimMagicWeather ("MAGIC_WEATHER"), 2792 fDimTngWeather ("TNG_WEATHER"), 2793 fDimFeedback ("FEEDBACK"), 2794 fDimBiasControl ("BIAS_CONTROL"), 2795 fDimFtmControl ("FTM_CONTROL"), 2796 fDimFadControl ("FAD_CONTROL"), 2797 fDimFscControl ("FSC_CONTROL"), 2798 fDimAgilentControl("AGILENT_CONTROL"), 2799 fDimPwrControl ("PWR_CONTROL"), 2800 fDimLidControl ("LID_CONTROL"), 2801 fDimRateControl ("RATE_CONTROL"), 2802 fDimRateScan ("RATE_SCAN"), 2803 fDimChat ("CHAT"), 2804 fDimSkypeClient ("SKYPE_CLIENT") 2794 2805 { 2795 2806 fDimDNS.Subscribe(*this); … … 2806 2817 fDimFadControl.Subscribe(*this); 2807 2818 fDimFscControl.Subscribe(*this); 2819 fDimAgilentControl.Subscribe(*this); 2820 fDimPwrControl.Subscribe(*this); 2821 fDimLidControl.Subscribe(*this); 2808 2822 fDimRateControl.Subscribe(*this); 2809 2823 fDimRateScan.Subscribe(*this);
Note:
See TracChangeset
for help on using the changeset viewer.