Changeset 2615 for trunk/MagicSoft/Cosy/tcpip
- Timestamp:
- 12/07/03 14:48:11 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy/tcpip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r2517 r2615 26 26 str.Remove(0, len); 27 27 28 fT.Set Timer(y, m, d, h, min, s, ms/1000.);28 fT.Set(y, m, d, h, min, s, ms); 29 29 30 30 // Remove the 30 tokens of the subsystem status … … 88 88 bool MCeCoCom::Send(const char *str) 89 89 { 90 Timert;90 MTime t; 91 91 t.Now(); 92 93 UShort_t y1, y2, ms1, ms2; 94 Byte_t mon1, mon2, d1, d2, h1, h2, m1, m2, s1, s2; 95 96 t.GetDate(y1, mon1, d1); 97 t.GetTime(h1, m1, s1, ms1); 98 99 fT.GetDate(y2, mon2, d2); 100 fT.GetTime(h2, m2, s2, ms2); 92 101 93 102 const char *msg = … … 96 105 "%02d %04d %02d %02d %02d %02d %02d %03d " 97 106 "%s\n", (const char*)fCommand, 98 fStatus, t.Year(), t.Month(), t.Day(), t.H(), t.M(), t.S(), t.MilliSec(),99 fComStat, fT.Year(), fT.Month(), fT.Day(), fT.H(), fT.M(), fT.S(), fT.MilliSec(),107 fStatus, y1, mon1, d1, h1, m1, s1, ms1, 108 fComStat, y2, mon2, d2, h2, m2, s2, ms2, 100 109 str); 101 110 -
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.h
r2517 r2615 10 10 #endif 11 11 12 #ifndef COSY_Timer13 #include " timer.h"12 #ifndef MARS_MTime 13 #include "MTime.h" 14 14 #endif 15 15 … … 25 25 26 26 TString fCommand; // report string of the current system 27 TimerfT; // time of last report received27 MTime fT; // time of last report received 28 28 char fStatus; // current status of this system 29 29 int fCCStatus; // global status of CC -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
r2613 r2615 4 4 5 5 #include "coord.h" 6 #include " Slalib.h"6 #include "MAstro.h" 7 7 #include "MCosy.h" 8 8 … … 24 24 str.Remove(0, len); 25 25 26 ret = Slalib::Dms2Deg(d, m, s, sgn);26 ret = MAstro::Dms2Deg(d, m, s, sgn); 27 27 return true; 28 28 } … … 137 137 UShort_t d, m, s; 138 138 139 Slalib::Deg2Dms(deg, sgn, d, m, s);139 MAstro::Deg2Dms(deg, sgn, d, m, s); 140 140 141 141 str += Form("%c %03d %02d %03d ", sgn, d, m, s); … … 161 161 SetStatus(4); 162 162 163 Timert;163 MTime t; 164 164 t.Now(); 165 165
Note:
See TracChangeset
for help on using the changeset viewer.