Changeset 2514
- Timestamp:
- 11/14/03 14:07:13 (21 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r2407 r2514 1 1 -*-*- END -*-*- 2 2003/11/14 - Thomas Bretz (La Palma) 3 4 * gui/MGCosy.cc: 5 - replaced a wrong 'h' (dec) by 'd' 6 7 * gui/MGImage.[h,cc]: 8 - replaced 32 by 24 9 10 * tcpip/MCeCoCom.[h,cc]: 11 - added fHumidity and fTemperature 12 13 * tcpip/MTcpIpIO.cc: 14 - added DEBUG directive 15 16 17 2 18 2003/10/20 - Thomas Bretz 3 19 … … 30 46 31 47 32 48 33 49 2003/10/15 - Thomas Bretz (La Palma) 34 50 -
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r2384 r2514 215 215 216 216 fRaEst = new TGLabel(f, "+000h 00.0m"); 217 fDecEst = new TGLabel(f, "+000 h00.0m");217 fDecEst = new TGLabel(f, "+000d 00.0m"); 218 218 fRaSoll = new TGLabel(f, "+000h 00.0m"); 219 fDecSoll = new TGLabel(f, "+000 h00.0m");220 fZdSoll = new TGLabel(f, "+000 h00.0m");221 fAzSoll = new TGLabel(f, "+000 h00.0m");219 fDecSoll = new TGLabel(f, "+000d 00.0m"); 220 fZdSoll = new TGLabel(f, "+000d 00.0m"); 221 fAzSoll = new TGLabel(f, "+000d 00.0m"); 222 222 fRaEst->SetTextJustify(kTextRight); 223 223 fDecEst->SetTextJustify(kTextRight); … … 931 931 deci = (int)test.Dec(); 932 932 //sprintf(text, "%c%dd %.1fm", rd.Dec()<0?'-':'+' , abs((int)rd.Dec()), 0.1*(abs((int)test.Dec())%600)); 933 sprintf(text, "%c%d h%.1fm", sd, d, dm);933 sprintf(text, "%c%dd %.1fm", sd, d, dm); 934 934 fDecEst->SetText(new TGString(text)); 935 935 } … … 961 961 decs = (int)test.Dec(); 962 962 //sprintf(text, "%c%dd %.1fm", radec.Dec()<0?'-':'+' , abs((int)radec.Dec()), 0.1*(abs((int)test.Dec())%600)); 963 sprintf(text, "%c%d h%.1fm", sd, d, dm);963 sprintf(text, "%c%dd %.1fm", sd, d, dm); 964 964 fDecSoll->SetText(new TGString(text)); 965 965 } -
trunk/MagicSoft/Cosy/gui/MGImage.cc
r2388 r2514 96 96 } 97 97 98 void MGImage::DrawImg 32(char *d, char *s, char *e)98 void MGImage::DrawImg24(char *d, char *s, char *e) 99 99 { 100 100 // d=destination, s=source, e=end … … 110 110 } 111 111 112 void MGImage::DrawColImg 32(char *d, char *s1, char *s2, char *e)112 void MGImage::DrawColImg24(char *d, char *s1, char *s2, char *e) 113 113 { 114 114 // d=destination, s1=source1, s2=source2, e=end … … 147 147 DrawImg16((unsigned short*)fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight)); 148 148 break; 149 case 32:150 DrawImg 32(fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight));149 case 24: 150 DrawImg24(fImage->data, (char*)buffer, (char*)(buffer+fWidth*fHeight)); 151 151 break; 152 152 default: … … 179 179 switch (gVirtualX->GetDepth()) 180 180 { 181 case 32:181 case 24: 182 182 DrawColImg32(fImage->data, (char*)gbuf, (char*)cbuf, (char*)(gbuf+fWidth*fHeight)); 183 183 break; -
trunk/MagicSoft/Cosy/gui/MGImage.h
r2388 r2514 36 36 37 37 void DrawImg16(unsigned short *d, char *s, char *e); 38 void DrawImg 32(char *d, char *s, char *e);39 void DrawColImg 32(char *d, char *s1, char *s2, char *e);38 void DrawImg24(char *d, char *s, char *e); 39 void DrawColImg24(char *d, char *s1, char *s2, char *e); 40 40 41 41 public: -
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.cc
r2384 r2514 65 65 cout << "Hum: " << hum << "%" << endl; 66 66 67 fHumidity = hum; 68 fTemperature = temp; 69 67 70 fComStat = kCmdReceived; 68 71 return true; -
trunk/MagicSoft/Cosy/tcpip/MCeCoCom.h
r2384 r2514 31 31 ComStatus_t fComStat; // communication status 32 32 33 Float_t fHumidity; // [%] 34 Float_t fTemperature; // degrees celsius 35 33 36 virtual bool InterpreteCmd(TString cmd, TString str); 34 37 … … 43 46 bool Send(const char *str); 44 47 void SetStatus(Byte_t s) { fStatus=s; } 48 49 Float_t GetHumidity() const { return fHumidity; } 50 Float_t GetTemperature() const { return fTemperature; } 45 51 }; 46 52 -
trunk/MagicSoft/Cosy/tcpip/MTcpIpIO.cc
r2384 r2514 6 6 #include <TSocket.h> 7 7 #include <TServerSocket.h> 8 9 #undef DEBUG 8 10 9 11 using namespace std; … … 71 73 return false; 72 74 } 73 75 #ifdef DEBUG 74 76 cout << "Tx: " << msg << flush; 75 77 #endif 76 78 return true; 77 79 }
Note:
See TracChangeset
for help on using the changeset viewer.