Changeset 8998 for trunk/MagicSoft/Cosy/tcpip
- Timestamp:
- 07/13/08 13:16:03 (17 years ago)
- Location:
- trunk/MagicSoft/Cosy/tcpip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r8840 r8998 132 132 fT.GetTime(h2, m2, s2, ms2); 133 133 134 MString msg;135 msg.Print("%s "134 const TString msg = 135 MString::Format("%s " 136 136 "%02d %04d %02d %02d %02d %02d %02d %03d " 137 137 "%02d %04d %02d %02d %02d %02d %02d %03d " … … 161 161 return ""; 162 162 163 MString str; 164 return str.Print("Temp: %.1f'C Hum: %.1f%% Wind: %.1fkm/h", 165 fTemperature, fHumidity, fWindSpeed); 163 return MString::Format("Temp: %.1f'C Hum: %.1f%% Wind: %.1fkm/h", 164 fTemperature, fHumidity, fWindSpeed); 166 165 } 167 166 -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
r8869 r8998 238 238 MAstro::Deg2Dms(deg, sgn, d, m, s); 239 239 240 MString txt; 241 str += txt.Print("%c %03d %02d %03d ", sgn, d, m, s); 240 str += MString::Format("%c %03d %02d %03d ", sgn, d, m, s); 242 241 } 243 242 … … 266 265 SetStatus(4); 267 266 268 MString txt;269 270 267 TString str; 271 268 Print(str, rd.Ra()); // Ra 272 269 Print(str, rd.Dec()); // Dec 273 270 Print(str, 0); // HA 274 str += txt.Print("%12.6f ", t.GetMjd()); // mjd271 str += MString::Format("%12.6f ", t.GetMjd()); // mjd 275 272 Print(str, so.Zd()); 276 273 Print(str, so.Az()); 277 274 Print(str, is.Zd()); 278 275 Print(str, is.Az()); 279 str += txt.Print("%08.3f ", er.Zd());280 str += txt.Print("%08.3f ", er.Az());276 str += MString::Format("%08.3f ", er.Zd()); 277 str += MString::Format("%08.3f ", er.Az()); 281 278 str += armed ? "1 " : "0 "; 282 279 … … 305 302 SetStatus(4); 306 303 307 MString txt;308 309 304 TString str; 310 str += txt.Print("%05.3f ", miss.Zd()); //[arcmin]311 str += txt.Print("%05.3f ", miss.Az()); //[arcmin]305 str += MString::Format("%05.3f ", miss.Zd()); //[arcmin] 306 str += MString::Format("%05.3f ", miss.Az()); //[arcmin] 312 307 Print(str, nompos.Zd()); //[deg] 313 308 Print(str, nompos.Az()); //[deg] 314 str += txt.Print("%05.1f ", center.GetX()); //number315 str += txt.Print("%05.1f ", center.GetY()); //number316 str += txt.Print("%04d ", n); //number of correleated stars317 str += txt.Print("%03.1f ", bright);318 str += txt.Print("%12.6f ", t.GetMjd()); // mjd319 str += txt.Print("%.1f ", x);320 str += txt.Print("%.1f ", y);321 str += txt.Print("%04d ", num); //number of detected stars309 str += MString::Format("%05.1f ", center.GetX()); //number 310 str += MString::Format("%05.1f ", center.GetY()); //number 311 str += MString::Format("%04d ", n); //number of correleated stars 312 str += MString::Format("%03.1f ", bright); 313 str += MString::Format("%12.6f ", t.GetMjd()); // mjd 314 str += MString::Format("%.1f ", x); 315 str += MString::Format("%.1f ", y); 316 str += MString::Format("%04d ", num); //number of detected stars 322 317 323 318 return SendRep("STARG-REPORT", str, kTRUE);
Note:
See TracChangeset
for help on using the changeset viewer.