Changeset 13952 for trunk/FACT++
- Timestamp:
- 05/28/12 10:48:05 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r13944 r13952 393 393 int64_t fFadControlNumEvents; 394 394 int32_t fFadControlDrsStep; 395 uint32_t fFadControlDrsRuns[3];395 vector<uint32_t> fFadControlDrsRuns; 396 396 397 397 float fFtmControlTriggerRateCam; … … 406 406 uint8_t fRateScanBoard; 407 407 deque<float> fRateScanDataHist[41]; 408 409 bool fSunIsVisible; 408 410 409 411 int fHasError; … … 534 536 string msg; 535 537 msg += str==time ? "--:--:-- " : time; 536 msg += "<->"+string(d.Ptr<char>())+"</->";538 msg += d.Ptr<char>(); 537 539 538 540 fControlMessageHist.push_back(msg); … … 543 545 out << HTML::kWhite << '\t'; 544 546 547 out << "<->"; 545 548 for (auto it=fControlMessageHist.begin(); it!=fControlMessageHist.end(); it++) 546 549 out << *it << "<br/>"; 550 out << "</->"; 547 551 548 552 out << '\n'; … … 667 671 else 668 672 out << "\t\n"; 673 674 fSunIsVisible = astro.state>=3 && astro.state<=5; 669 675 670 676 ofstream(fPath+"/weather.data") << out.str(); … … 1324 1330 } 1325 1331 1326 switch ( d.GetQoS())1332 switch (fFadControlDrsStep) 1327 1333 { 1328 1334 case 0: WriteBinary(d, "fadcontrol-eventdata", max, 2, -1); break; … … 1607 1613 1608 1614 1609 if ( !fDimFeedback.state()==Feedback::State::kCalibrating &&1615 if (fDimFeedback.state()!=Feedback::State::kCalibrating && 1610 1616 fDimBiasControl.state()==BIAS::State::kVoltageOn && 1611 1617 fBiasControlVoltageMed>3 && … … 1767 1773 const State rc = fDimDriveControl.description(); 1768 1774 string col = HTML::kGreen; 1769 if (rc.index== 6) // Moving1775 if (rc.index==Drive::State::kMoving) // Moving 1770 1776 col = HTML::kBlue; 1771 if (rc.index== 5) // Armed1777 if (rc.index==Drive::State::kArmed) // Armed 1772 1778 col = HTML::kWhite; 1773 if (rc.index== 7) // Tracking1779 if (rc.index==Drive::State::kTracking) // Tracking 1774 1780 { 1775 1781 if (dev>60) // ~1.5mm … … 1781 1787 1782 1788 //out << rc.name << '\t'; 1783 out << fDriveControlPointing Zd << '\t';1789 out << fDriveControlPointingAz << ' '; 1784 1790 out << setprecision(2); 1785 out << fDriveControlPointing Az << '\t';1786 if (fDimDriveControl.state()== 7)1791 out << fDriveControlPointingZd << "°"; 1792 if (fDimDriveControl.state()==Drive::State::kTracking) 1787 1793 { 1788 out << fDriveControlSourceName << '\t'; 1789 out << dev << '\n'; 1794 out << " ± " << dev << '"'; 1795 if (!fDriveControlSourceName.empty()) 1796 out << '[' << fDriveControlSourceName << ']'; 1790 1797 } 1791 else1792 out << " \t\n";1798 if (fDimDriveControl.state()==Drive::State::kMoving) 1799 out << " ₪"; 1793 1800 out << setprecision(3); 1794 1801 } 1795 1802 else 1796 out << HTML::kWhite << '\n'; 1803 out << HTML::kWhite << '\t'; 1804 if (fSunIsVisible) 1805 out << " ☼"; 1806 out << '\n'; 1797 1807 1798 1808 // ------------------- FSC ------------------ … … 1842 1852 col = HTML::kRed; 1843 1853 1844 out << col << '\t' << fFtmControlTriggerRateCam << '\t'; 1845 out << fFtmPatchThresholdMed << '\n'; 1854 out << col << '\t' << fFtmControlTriggerRateCam << " Hz"; 1855 if (fDimBiasControl.state()==BIAS::State::kVoltageOn) 1856 out << " (" << fFtmPatchThresholdMed << ')'; 1857 out << '\n'; 1846 1858 } 1847 1859 else … … 1877 1889 1878 1890 // Feedback is currently calibrating => Blue 1879 if (fDimFeedback.state()== 13)1891 if (fDimFeedback.state()==Feedback::State::kCalibrating) 1880 1892 { 1881 1893 out << HTML::kBlue << '\t'; … … 1961 1973 fBiasControlCurrentMax(0), 1962 1974 fFscControlHumidityAvg(0), 1975 fFadControlDrsRuns(3), 1963 1976 fFtmControlTriggerRateCam(0), 1964 1977 fRateScanDataId(0), 1965 1978 fRateScanBoard(0), 1979 fSunIsVisible(true), 1966 1980 fHasError(2), 1967 1981 // ---
Note:
See TracChangeset
for help on using the changeset viewer.