Changeset 9439 for trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
- Timestamp:
- 05/09/09 13:48:12 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r9435 r9439 104 104 cout << "Zd/Az: " << zd << "/" << az << " "; 105 105 cout << "Ra/Dec: " << ra/15 << "h/" << dec << " "; 106 cout << "SolRad: " << solar << "W/m²" << endl; 106 //cout << "SolRad: " << solar << "W/m²"; 107 cout << endl; 107 108 108 109 fComStat = kCmdReceived; … … 122 123 return InterpreteReport(str); 123 124 124 const bool rc = InterpreteCmd(cmd, str.Strip(TString::kBoth)); 125 fComStat = rc ? kCmdReceived : kComProblem; 126 return rc; 125 return InterpreteCmd(cmd, str.Strip(TString::kBoth)); 127 126 } 128 127 129 128 bool MCeCoCom::SendRep(const char *cmd, const char *str, bool force) 130 129 { 131 MTime t;132 t.Now();133 130 134 131 UShort_t y1, y2, ms1, ms2; 135 132 Byte_t mon1, mon2, d1, d2, h1, h2, m1, m2, s1, s2; 136 133 134 fT.GetDate(y2, mon2, d2); 135 fT.GetTime(h2, m2, s2, ms2); 136 137 MTime t(-1); 137 138 t.GetDate(y1, mon1, d1); 138 139 t.GetTime(h1, m1, s1, ms1); 139 140 140 fT.GetDate(y2, mon2, d2);141 fT.GetTime(h2, m2, s2, ms2);141 if (t-fT>20) 142 fComStat = kComProblem; 142 143 143 144 const TString msg = … … 152 153 // Send report to CC 153 154 const bool rc = Send(msg.Data(), msg.Length()); 154 fComStat = rc ? kNoCmdReceived : kComProblem;155 155 156 156 // Write report to stream
Note:
See TracChangeset
for help on using the changeset viewer.