Changeset 1727 for trunk/MagicSoft/Cosy/gui/MGCosy.cc
- Timestamp:
- 01/23/03 13:32:58 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r1702 r1727 180 180 fList->Add(l); 181 181 182 fOffsetZd = new TGLabel(f, "0000000 ");183 fOffsetAz = new TGLabel(f, "0000000 ");182 fOffsetZd = new TGLabel(f, "000000000"); 183 fOffsetAz = new TGLabel(f, "000000000"); 184 184 fOffsetZd->SetTextJustify(kTextRight); 185 185 fOffsetAz->SetTextJustify(kTextRight); 186 fOffsetZd->Move(x , y+102);187 fOffsetAz->Move(x , y+119);186 fOffsetZd->Move(x+15, y+102); 187 fOffsetAz->Move(x+15, y+119); 188 188 fList->Add(fOffsetZd); 189 189 fList->Add(fOffsetAz); … … 193 193 fList->Add(l); 194 194 195 l = new TGLabel(f, "Ra ( soll):");195 l = new TGLabel(f, "Ra (nominal):"); 196 196 l->Move(x-60, y+159); 197 197 fList->Add(l); … … 201 201 fList->Add(l); 202 202 203 l = new TGLabel(f, "Dec ( soll):");203 l = new TGLabel(f, "Dec (nominal):"); 204 204 l->Move(x-60, y+199); 205 205 fList->Add(l); 206 206 207 l = new TGLabel(f, "Zd ( soll):");207 l = new TGLabel(f, "Zd (nominal):"); 208 208 l->Move(x-60, y+222); 209 209 fList->Add(l); 210 210 211 l = new TGLabel(f, "Az ( soll):");211 l = new TGLabel(f, "Az (nominal):"); 212 212 l->Move(x-60, y+239); 213 213 fList->Add(l); … … 836 836 { 837 837 zd = (int)test.Zd(); 838 sprintf(text, "%c%d h%.1fm", soll.Zd()<0?'-':'+', abs((int)soll.Zd()), 0.1*(abs((int)test.Zd())%600));838 sprintf(text, "%c%dd %.1fm", soll.Zd()<0?'-':'+', abs((int)soll.Zd()), 0.1*(abs((int)test.Zd())%600)); 839 839 fZdSoll->SetText(new TGString(text)); 840 840 } … … 984 984 Timer tm; 985 985 tm.Now(); 986 986 /* 987 987 Float_t h = 2.+tm.H()+(10.7+tm.M())/60.; 988 988 RaDec dest(h*15, 129.7); … … 994 994 int i = 0; 995 995 while (!HasStopFlag() && i++<60) // 2.5min 996 996 usleep(1000000); 997 997 if (HasStopFlag()) 998 998 break; 999 */ 999 1000 1000 1001 //fQueue->PostMsg(WM_STOP, 0, 0); 1001 1002 1002 ZdAz dest1( fRand.Integer(36)+25, fRand.Integer(360));1003 ZdAz dest1((float)fRand.Integer(120)-60., 0);//fRand.Integer(25)+90); 1003 1004 1004 1005 cout << "Demo: Zd=" << dest1.Zd() << "° Az=" << dest1.Az() << "°" << endl; … … 1006 1007 fQueue->PostMsg(WM_POSITION, &dest1, sizeof(dest1)); 1007 1008 1008 i = 0;1009 while (!HasStopFlag() && i++< 15) // 30s1009 int i = 0; 1010 while (!HasStopFlag() && i++<5/*5*/) // 30s 1010 1011 usleep(1000000); 1011 1012 if (HasStopFlag())
Note:
See TracChangeset
for help on using the changeset viewer.