Changeset 14113
- Timestamp:
- 06/08/12 11:22:36 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/smartfact.cc
r14112 r14113 678 678 679 679 if (last<FSC::State::kConnected && state==FSC::State::kConnected) 680 SetAudio("s ound_13");680 SetAudio("startup"); 681 681 682 682 if (last==FSC::State::kConnected && state<FSC::State::kConnected) 683 SetAudio("s ound_14");683 SetAudio("shutdown"); 684 684 } 685 685 … … 711 711 712 712 ostringstream out; 713 out << HTML::kBlue << '\t' << d.GetTimeAsStr("%H:%M:%S") << "" << d.Ptr<char>(16);713 out << d.GetTimeAsStr("%H:%M:%S") << " <#darkgreen>" << d.Ptr<char>(16); 714 714 if (!fDriveControlSourceName.empty()) 715 out << " [" << fDriveControlSourceName << "]\n"; 715 out << " [" << fDriveControlSourceName << ']'; 716 out << "</#><br/>"; 716 717 fMcpConfigurationHist.push_back(out.str()); 717 718 } … … 723 724 724 725 ostringstream out; 725 out << HTML::kGreen << '\t' << d.GetTimeAsStr("%H:%M:%S") << " " << fMcpConfigurationName << '\n'; 726 out << d.GetTimeAsStr("%H:%M:%S") << " <#darkred>" << fMcpConfigurationName; 727 if (!fDriveControlSourceName.empty()) 728 out << " [" << fDriveControlSourceName << ']'; 729 out << "</#><br/>"; 726 730 fMcpConfigurationHist.push_back(out.str()); 727 if (!fDriveControlSourceName.empty())728 out << " [" << fDriveControlSourceName << "]\n";729 731 } 730 732 … … 737 739 ostringstream out; 738 740 out << d.GetJavaDate() << '\n'; 741 out << HTML::kWhite << '\t'; 739 742 for (auto it=fMcpConfigurationHist.rbegin(); it!=fMcpConfigurationHist.rend(); it++) 740 743 out << *it; 741 742 ofstream(fPath+"/observations.txt") << out.str(); 744 out << '\n'; 745 746 ofstream(fPath+"/observations.data") << out.str(); 743 747 744 748 return GetCurrentState(); … … 1784 1788 observer.lat = lat; 1785 1789 1786 ln_hrz_posn hrz;1787 1790 ln_equ_posn pos; 1788 1791 pos.ra = ra*15; 1789 1792 pos.dec = dec; 1790 1793 1794 ln_hrz_posn hrz; 1791 1795 ln_get_hrz_from_equ(&pos, &observer, now.JD(), &hrz); 1792 //az = hrz.az;1793 1796 1794 1797 string col = HTML::kWhite; … … 1951 1954 if (newerr) 1952 1955 { 1953 SetAudio(" sound_7");1956 SetAudio("error"); 1954 1957 1955 1958 out << now.JavaDate() << '\n';
Note:
See TracChangeset
for help on using the changeset viewer.