Changeset 8376
- Timestamp:
- 03/14/07 19:12:17 (18 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 34 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r8184 r8376 1 1 -*-*- END -*-*- 2 3 2007/03/14 Thomas Bretz 4 5 * bend.cc, cosy.cc, starg.cc, testse.cc, base/MStarList.cc, 6 base/MThread.cc, base/log.h, base/msgqueue.cc, candrv/nodedrv.cc, 7 candrv/sdolist.cc, catalog/SlaPlanets.cc, catalog/Slalib.cc, 8 catalog/StarCatalog.cc, gui/MGAccuracy.cc, gui/MGCoordinate.cc, 9 gui/MGCoordinates.cc, gui/MGCosy.cc, gui/MGNumStars.cc, 10 gui/MGSkyPosition.cc, main/MBending.cc, main/MStargHistograms.cc: 11 - replaced obsolete .h by C++ headers 12 - added namespace std 13 14 * base/MStarList.h: 15 - fixed warnings about overwriting of Delete 16 17 * base/MStopwatch.h, gui/MGCoordinate.h, gui/MGCoordinates.h: 18 - fixed warning about overwriting of Print() 19 20 * base/MTimeout.cc, candrv/nodedrv.cc, devdrv/macs.cc: 21 - fixed default argument is declaration 22 23 * catalog/StarCatalog.cc, gui/MGAccuracy.cc: 24 - fixed a type problem (int instead of double) 25 26 * gui/MGCoordinate.cc, gui/MGCosy.cc: 27 - fixed a warning about double declaration 28 29 2 30 3 31 2006/11/01 Thomas Bretz -
trunk/MagicSoft/Cosy/base/MStarList.cc
r1810 r8376 1 1 #include "MStarList.h" 2 2 3 #include <iostream.h> 3 #include <iostream> 4 5 using namespace std; 4 6 5 7 void MStarList::RemoveTwins(Double_t radius) -
trunk/MagicSoft/Cosy/base/MStarList.h
r1810 r8376 31 31 } 32 32 33 void Delete(Int_t i) { delete fStars.RemoveAt(i); } 34 void Delete(MStar *obj) { delete fStars.Remove(obj); } 33 void Delete(Option_t *o="") { } 34 void Delete(Int_t i) { delete fStars.RemoveAt(i); } 35 void Delete(MStar *obj) { delete fStars.Remove(obj); } 35 36 36 37 Int_t GetMax() const { return fStars.GetLast()+1; } -
trunk/MagicSoft/Cosy/base/MStopwatch.h
r732 r8376 8 8 public: 9 9 void Print(Float_t i); 10 void Print(Option_t *o="") const { } 10 11 }; 11 12 -
trunk/MagicSoft/Cosy/base/MThread.cc
r2407 r8376 1 1 #include <MThread.h> 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 #include <pthread.h> … … 8 8 #undef DEBUG 9 9 //#define DEBUG 10 11 using namespace std; 10 12 11 13 // ---------------------------------------------------------------------- -
trunk/MagicSoft/Cosy/base/MTimeout.cc
r2518 r8376 3 3 #include <TSystem.h> 4 4 5 MTimeout::MTimeout(unsigned long ms =500) : fTimeout((ULong_t)gSystem->Now()+ms)5 MTimeout::MTimeout(unsigned long ms) : fTimeout((ULong_t)gSystem->Now()+ms) 6 6 { 7 7 // Use SetTime to change the timing … … 14 14 } 15 15 16 void MTimeout::Start(unsigned long ms =500)16 void MTimeout::Start(unsigned long ms) 17 17 { 18 18 fTimeout = (ULong_t)gSystem->Now()+ms; -
trunk/MagicSoft/Cosy/base/coord.h
r4076 r8376 3 3 4 4 #include <math.h> // floor 5 #include < fstream.h>5 #include <iostream> 6 6 7 7 #include "MAGIC.h" … … 37 37 class XY 38 38 { 39 friend i fstream& operator>>(ifstream &in, XY &xy);40 friend o fstream& operator<<(ofstream &in, XY &xy);39 friend istream& operator>>(istream &in, XY &xy); 40 friend ostream& operator<<(ostream &in, XY &xy); 41 41 42 42 protected: … … 73 73 }; 74 74 75 inline ifstream& operator>>(ifstream &in, XY &xy) { in >> xy.fX; in >> xy.fY; return in; }76 inline ofstream& operator<<(ofstream &out, const XY &xy) { out << xy.X() << " " << xy.Y(); return out; }75 inline std::istream& operator>>(std::istream &in, XY &xy) { in >> xy.fX; in >> xy.fY; return in; } 76 inline std::ostream& operator<<(std::ostream &out, const XY &xy) { out << xy.X() << " " << xy.Y(); return out; } 77 77 78 78 class AltAz : public XY -
trunk/MagicSoft/Cosy/base/log.h
r2384 r8376 2 2 #define COSY_Log 3 3 4 #include <ostream .h>4 #include <ostream> 5 5 6 6 #ifndef MARS_MLog -
trunk/MagicSoft/Cosy/base/msgqueue.cc
r4076 r8376 1 1 #include "msgqueue.h" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 #include <unistd.h> // usleep … … 7 7 8 8 #undef DEBUG 9 10 using namespace std; 9 11 10 12 // -------------------------------------------------------------------------- -
trunk/MagicSoft/Cosy/bend.cc
r1953 r8376 1 #include <iomanip .h>2 #include < iostream.h>1 #include <iomanip> 2 #include <fstream> 3 3 4 4 #include <MBending.h> 5 6 using namespace std; 5 7 6 8 /* ---------------------------------------------------------------------- */ -
trunk/MagicSoft/Cosy/candrv/nodedrv.cc
r7313 r8376 45 45 #include "nodedrv.h" 46 46 47 #include <iomanip .h>48 #include <iostream .h>47 #include <iomanip> 48 #include <iostream> 49 49 50 50 //#include <TTimer.h> … … 55 55 56 56 ClassImp(NodeDrv); 57 58 using namespace std; 57 59 58 60 // -------------------------------------------------------------------------- … … 217 219 // In this case false is returned, otherwise true 218 220 // 219 bool NodeDrv::SendPDO1(BYTE_t m0 =0, BYTE_t m1=0, BYTE_t m2=0, BYTE_t m3=0,220 BYTE_t m4 =0, BYTE_t m5=0, BYTE_t m6=0, BYTE_t m7=0)221 bool NodeDrv::SendPDO1(BYTE_t m0, BYTE_t m1, BYTE_t m2, BYTE_t m3, 222 BYTE_t m4, BYTE_t m5, BYTE_t m6, BYTE_t m7) 221 223 { 222 224 if (!fIsZombie) … … 233 235 // In this case false is returned, otherwise true 234 236 // 235 bool NodeDrv::SendPDO2(BYTE_t m0 =0, BYTE_t m1=0, BYTE_t m2=0, BYTE_t m3=0,236 BYTE_t m4 =0, BYTE_t m5=0, BYTE_t m6=0, BYTE_t m7=0)237 bool NodeDrv::SendPDO2(BYTE_t m0, BYTE_t m1, BYTE_t m2, BYTE_t m3, 238 BYTE_t m4, BYTE_t m5, BYTE_t m6, BYTE_t m7) 237 239 { 238 240 if (!fIsZombie) … … 543 545 }; 544 546 545 void NodeDrv::StartGuarding(Bool_t real =kTRUE)547 void NodeDrv::StartGuarding(Bool_t real) 546 548 { 547 549 if (fGuard) -
trunk/MagicSoft/Cosy/candrv/sdolist.cc
r4076 r8376 1 1 #include "sdolist.h" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 ClassImp(PendingSDO); 6 6 ClassImp(PendingSDOList); 7 8 using namespace std; 7 9 8 10 PendingSDOList::PendingSDOList() -
trunk/MagicSoft/Cosy/catalog/SlaPlanets.cc
r3897 r8376 1 1 #include "SlaPlanets.h" 2 2 3 #include <iostream .h>3 #include <iostream> 4 4 5 5 #include "slalib.h" 6 6 7 7 ClassImp(SlaPlanets); 8 9 using namespace std; 8 10 9 11 SlaPlanets::SlaPlanets(MObservatory::LocationName_t key) : Slalib(key), fDt(slaDt(2000.0)/60./60./24.) -
trunk/MagicSoft/Cosy/catalog/Slalib.cc
r4104 r8376 2 2 3 3 #include <time.h> 4 #include <iostream .h> // cout4 #include <iostream> // cout 5 5 6 6 #include "coord.h" … … 9 9 10 10 ClassImp(Slalib); 11 12 using namespace std; 11 13 12 14 Slalib::Slalib(MObservatory::LocationName_t key) : MObservatory(key) -
trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
r7787 r8376 1 1 #include "StarCatalog.h" 2 2 3 #include <iomanip .h> // cout4 #include <iostream .h> // cout3 #include <iomanip> // cout 4 #include <iostream> // cout 5 5 6 6 #include <TSystem.h> … … 15 15 16 16 ClassImp(StarCatalog); 17 18 using namespace std; 17 19 18 20 StarCatalog::StarCatalog(MObservatory::LocationName_t key) : SlaStars(key), fW(768), fH(576), fAstro(0), /*fSao(NULL), fSrt(NULL), fEntries(0),*/ fSinAngle(0), fCosAngle(1), fBox(768) … … 136 138 { 137 139 const int mag = (10 - (star->GetMag()>1 ? (int)star->GetMag() : 1))/2; 138 Double_t color = 0xf0; //0x0f;140 Int_t color = 0xf0; //0x0f; 139 141 // DrawStars flips the picture in X defaultwise now 140 142 DrawCircle(color, img, 768-(int)star->GetX(), (int)star->GetY(), mag); … … 155 157 { 156 158 // For an apropriate unit conversion to pixels [pix/rad] 157 const Double_t scale = TMath::RadToDeg()* sqrt(768*768 + 576*576)/(fAstro->GetRadiusFOV()*2);159 const Double_t scale = TMath::RadToDeg()*TMath::Sqrt(768*768 + 576*576)/(fAstro->GetRadiusFOV()*2); 158 160 159 161 // Offsets to shift [-n/2;n/2] to [0;n] and to -
trunk/MagicSoft/Cosy/cosy.cc
r7788 r8376 11 11 12 12 #include "MStarguider.h" 13 14 using namespace std; 13 15 14 16 #define EXPERT -
trunk/MagicSoft/Cosy/devdrv/macs.cc
r4104 r8376 550 550 } 551 551 552 void Macs::SendMsg(BYTE_t d0 =0, BYTE_t d1=0, BYTE_t d2=0,553 BYTE_t d3 =0, BYTE_t d4=0, BYTE_t d5=0)552 void Macs::SendMsg(BYTE_t d0, BYTE_t d1, BYTE_t d2, 553 BYTE_t d3, BYTE_t d4, BYTE_t d5) 554 554 { 555 555 GetNetwork()->SendCanFrame(fMacId, 0, 0, d0, d1, d2, d3, d4, d5); -
trunk/MagicSoft/Cosy/gui/MGAccuracy.cc
r7790 r8376 1 1 #include "MGAccuracy.h" 2 2 3 #include <iostream .h> // cout3 #include <iostream> // cout 4 4 5 5 #include <TArc.h> … … 16 16 17 17 ClassImp(MGAccuracy); 18 19 using namespace std; 18 20 19 21 void MGAccuracy::DrawText(const char *c1, const char *c2, const char *c3, const char*txt) … … 163 165 dist *= 3600.; // [sec] 164 166 165 int rs = (int)floor(fmod(dist,60.));167 int rs = TMath::FloorNint(fmod(dist, (float)60.)); 166 168 167 169 dist /= 60.; // [min] -
trunk/MagicSoft/Cosy/gui/MGCoordinate.cc
r7794 r8376 8 8 9 9 #include <stdlib.h> // atoi 10 #include <iostream .h> // cout10 #include <iostream> // cout 11 11 12 12 #include <TSystem.h> … … 18 18 19 19 ClassImp(MGCoordinate); 20 21 using namespace std; 20 22 21 23 enum { … … 25 27 }; 26 28 27 MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type =kETypeDeg,29 MGCoordinate::MGCoordinate(const TGWindow* p, const Int_t type, 28 30 const Int_t flag, const char *txt, 29 31 const Int_t deg, const UInt_t min, const UInt_t sec) … … 91 93 TGLabel *label; 92 94 93 const char * deg = type==kETypeDeg ? "\xb0" : "h";94 const char * min = type==kETypeDeg ? "'" : "m";95 const char *s ec = type==kETypeDeg ? "\"" : "s";95 const char *sdeg = type==kETypeDeg ? "\xb0" : "h"; 96 const char *smin = type==kETypeDeg ? "'" : "m"; 97 const char *ssec = type==kETypeDeg ? "\"" : "s"; 96 98 97 99 if (flag==1) 98 100 { 99 label = new TGLabel(this, deg);101 label = new TGLabel(this, sdeg); 100 102 label->SetTextJustify(kTextLeft); 101 103 label->Move(37, 29-offset); … … 103 105 fList->Add(label); 104 106 105 label = new TGLabel(this, min);107 label = new TGLabel(this, smin); 106 108 label->SetTextJustify(kTextLeft); 107 109 label->Move(71, 29-offset); … … 109 111 fList->Add(label); 110 112 111 label = new TGLabel(this, s ec);113 label = new TGLabel(this, ssec); 112 114 label->SetTextJustify(kTextLeft); 113 115 label->Move(107, 29-offset); … … 116 118 } 117 119 118 label = new TGLabel(this, deg);120 label = new TGLabel(this, sdeg); 119 121 label->SetTextJustify(kTextLeft); 120 122 label->Move(39, ypos); … … 122 124 fList->Add(label); 123 125 124 label = new TGLabel(this, min);126 label = new TGLabel(this, smin); 125 127 label->SetTextJustify(kTextLeft); 126 128 label->Move(73, ypos); … … 128 130 fList->Add(label); 129 131 130 label = new TGLabel(this, s ec);132 label = new TGLabel(this, ssec); 131 133 label->SetTextJustify(kTextLeft); 132 134 label->Move(107, ypos); … … 149 151 } 150 152 151 void MGCoordinate::Print( )153 void MGCoordinate::Print(Option_t *o) const 152 154 { 153 155 if (fLabel) -
trunk/MagicSoft/Cosy/gui/MGCoordinate.h
r7790 r8376 58 58 Bool_t ProcessMessage(Long_t msg, Long_t mp1, Long_t mp2); 59 59 60 void Print( );60 void Print(Option_t *o="") const; 61 61 62 62 ClassDef(MGCoordinate, 0) -
trunk/MagicSoft/Cosy/gui/MGCoordinates.cc
r7790 r8376 7 7 #include "MGCoordinates.h" 8 8 9 #include <iostream .h> // cout9 #include <iostream> // cout 10 10 11 11 #include "MGCoordinate.h" … … 13 13 14 14 ClassImp(MGCoordinates); 15 16 using namespace std; 15 17 16 18 MGCoordinates::MGCoordinates(const TGWindow* p, … … 54 56 } 55 57 56 void MGCoordinates::Print( )58 void MGCoordinates::Print(Option_t *o) const 57 59 { 58 60 fX->Print(); -
trunk/MagicSoft/Cosy/gui/MGCoordinates.h
r7790 r8376 37 37 void SetCoordinates(const XY &xy); 38 38 39 void Print( );39 void Print(Option_t *o="") const; 40 40 41 41 ClassDef(MGCoordinates, 0) -
trunk/MagicSoft/Cosy/gui/MGCosy.cc
r7794 r8376 1 1 #include "MGCosy.h" 2 2 3 #include <iomanip .h>4 #include < iostream.h>3 #include <iomanip> 4 #include <fstream> 5 5 6 6 #include "msgqueue.h" … … 42 42 43 43 ClassImp(MGCosy); 44 45 using namespace std; 44 46 45 47 #define IDM_EXIT 1 … … 827 829 cout << "MGCosy: Setting Size" << endl; 828 830 #endif 829 const Int_t w = 1010;830 const Int_t h = 700;831 SetWMSizeHints(w , h, w,h, 1, 1); // set the smallest and biggest size of the Main frame831 const Int_t ww = 1010; 832 const Int_t hh = 700; 833 SetWMSizeHints(ww, hh, ww, hh, 1, 1); // set the smallest and biggest size of the Main frame 832 834 833 835 SetWindowName("Cosy Main Window"); … … 838 840 #endif 839 841 MapSubwindows(); 840 Resize(w ,h); //GetDefaultSize());842 Resize(ww, hh); //GetDefaultSize()); 841 843 MapWindow(); 842 844 } -
trunk/MagicSoft/Cosy/gui/MGNumStars.cc
r7794 r8376 1 1 #include "MGNumStars.h" 2 2 3 #include <iostream .h> // cout3 #include <iostream> // cout 4 4 5 5 #include <TLine.h> … … 13 13 14 14 ClassImp(MGNumStars); 15 16 using namespace std; 15 17 16 18 void MGNumStars::DrawText(const char*txt) -
trunk/MagicSoft/Cosy/gui/MGSkyPosition.cc
r2751 r8376 7 7 #include "MGSkyPosition.h" 8 8 9 #include <iostream .h> // cout9 #include <iostream> // cout 10 10 11 11 #include <TArc.h> … … 21 21 22 22 ClassImp(MGSkyPosition); 23 24 using namespace std; 23 25 24 26 void MGSkyPosition::InitArc(TArc *arc, Int_t fillstyle, Int_t fillcolor, Int_t linecolor) -
trunk/MagicSoft/Cosy/main/MBending.cc
r4255 r8376 59 59 #include "MBending.h" 60 60 61 #include <fstream .h>62 #include <iomanip .h>61 #include <fstream> 62 #include <iomanip> 63 63 #include <TVector3.h> 64 64 … … 68 68 69 69 ClassImp(MBending); 70 71 using namespace std; 70 72 71 73 #undef DEBUG -
trunk/MagicSoft/Cosy/main/MCaos.cc
r7790 r8376 1 1 #include "MCaos.h" 2 2 3 #include < iostream>3 #include <fstream> 4 4 #include <iomanip> 5 5 … … 21 21 #include "coord.h" 22 22 23 void MCaos::ReadResources(const char *name="leds.txt") 23 using namespace std; 24 25 void MCaos::ReadResources(const char *name) 24 26 { 25 27 ifstream fin(name); … … 242 244 c->Update(); 243 245 244 const Int_t n1 = (Int_t)( sqrt(fPositions.GetEntriesFast())+1.0);245 const Int_t n2 = (Int_t)( sqrt(fPositions.GetEntriesFast())+0.5);246 const Int_t n1 = (Int_t)(TMath::Sqrt(fPositions.GetEntriesFast())+1.0); 247 const Int_t n2 = (Int_t)(TMath::Sqrt(fPositions.GetEntriesFast())+0.5); 246 248 247 249 TCanvas *c1 = new TCanvas("cpos", "Led Positions", 800, 600); … … 330 332 } 331 333 332 Ring MCaos::Run(byte *img, bool printl, bool printr, const ZdAz &pos, const MTime &t, Double_t box, Double_t cut)334 Ring MCaos::Run(byte *img, bool printl, bool printr, const ZdAz &pos, const MTime &t, Int_t box, Double_t cut) 333 335 { 334 336 Leds &leds = *fLeds; … … 355 357 // Try to find Led in this area 356 358 const Led &l0 = fPositions(i); 357 f.Execute(leds, l0.GetX(), l0.GetY());359 f.Execute(leds, TMath::FloorNint(l0.GetX()), TMath::FloorNint(l0.GetY())); 358 360 359 361 // Loop over newly found Leds -
trunk/MagicSoft/Cosy/main/MCaos.h
r4865 r8376 89 89 90 90 Ring Run(byte *img, bool printl, bool printr, const ZdAz &pos, 91 const MTime &t, Double_t box, Double_t cut);91 const MTime &t, Int_t box, Double_t cut); 92 92 }; 93 93 -
trunk/MagicSoft/Cosy/main/MCosy.cc
r7790 r8376 1 1 #include "MCosy.h" 2 2 3 #include <iomanip.h> 4 #include <fstream.h> 5 #include <iostream.h> 3 #include <iomanip> 4 #include <fstream> 6 5 7 6 #include <TROOT.h> … … 30 29 31 30 ClassImp(MCosy); 31 32 using namespace std; 32 33 33 34 typedef struct tm tm_t; … … 493 494 { 494 495 #ifdef EXPERT 495 fMac1->SetDeceleration( 0.5*fMac1->GetVelRes());496 fMac2->SetDeceleration( 0.5*fMac2->GetVelRes());496 fMac1->SetDeceleration(TMath::Nint(0.5*fMac1->GetVelRes())); 497 fMac2->SetDeceleration(TMath::Nint(0.5*fMac2->GetVelRes())); 497 498 #else 498 fMac1->SetDeceleration( 0.3*fMac1->GetVelRes());499 fMac2->SetDeceleration( 0.3*fMac2->GetVelRes());499 fMac1->SetDeceleration(TMath::Nint(0.3*fMac1->GetVelRes())); 500 fMac2->SetDeceleration(TMath::Nint(0.3*fMac2->GetVelRes())); 500 501 #endif 501 502 fMac1->SetRpmMode(FALSE); -
trunk/MagicSoft/Cosy/main/MPointing.cc
r7230 r8376 6 6 7 7 ClassImp(MPointing); 8 9 using namespace std; 8 10 9 11 //#define EXPERT … … 30 32 if (ratio<1) 31 33 { 32 fCosy->fMac1->SetVelocity( vel);33 fCosy->fMac2->SetVelocity( vel*ratio);34 fCosy->fMac1->SetVelocity(TMath::Nint(vel)); 35 fCosy->fMac2->SetVelocity(TMath::Nint(vel*ratio)); 34 36 } 35 37 else 36 38 { 37 fCosy->fMac1->SetVelocity( vel/ratio);38 fCosy->fMac2->SetVelocity( vel);39 fCosy->fMac1->SetVelocity(TMath::Nint(vel/ratio)); 40 fCosy->fMac2->SetVelocity(TMath::Nint(vel)); 39 41 } 40 42 } … … 56 58 fCosy->SetStatus(MDriveCom::kMoving); 57 59 58 if (axe1) fCosy->fMac2->StartRelPos( rd.Zd());59 if (axe2) fCosy->fMac1->StartRelPos( rd.Az());60 if (axe1) fCosy->fMac2->StartRelPos(TMath::Nint(rd.Zd())); 61 if (axe2) fCosy->fMac1->StartRelPos(TMath::Nint(rd.Az())); 60 62 #ifdef EXPERT 61 63 cout << "Waiting for positioning..." << flush; … … 73 75 { 74 76 const int vr = mac->GetVelRes(); 75 mac->SetAcceleration( acc*vr);76 mac->SetDeceleration( dec*vr);77 mac->SetAcceleration(TMath::Nint(acc*vr)); 78 mac->SetDeceleration(TMath::Nint(dec*vr)); 77 79 return !mac->IsZombieNode(); 78 80 } -
trunk/MagicSoft/Cosy/main/MStargHistograms.cc
r7767 r8376 22 22 23 23 #include "coord.h" 24 25 using namespace std; 24 26 25 27 void MStargHistograms::OpenFile() -
trunk/MagicSoft/Cosy/main/MStarguider.cc
r7795 r8376 4 4 #include "MStarguider.h" 5 5 6 #include <fstream .h> // ifstream7 #include <iostream .h> // cout8 #include <iomanip .h>// cout6 #include <fstream> // ifstream 7 #include <iostream> // cout 8 #include <iomanip> // cout 9 9 10 10 #include <TH2F.h> … … 57 57 58 58 ClassImp(MStarguider); 59 60 using namespace std; 59 61 60 62 enum { … … 1457 1459 1458 1460 const Int_t idx = x.GetSize(); 1459 1461 1460 1462 x.Set(idx+1); 1461 1463 y.Set(idx+1); 1462 1464 mag.Set(idx+1); 1463 1465 1464 1466 x.AddAt(dpos.X(), idx); 1465 1467 y.AddAt(dpos.Y(), idx); … … 1507 1509 fPZdAz->SetCoordinates(cpos); 1508 1510 1509 1510 1511 // Check StargTPoint data set request 1511 1512 if (!fStargTPoint->IsDown()) … … 1575 1576 } 1576 1577 1577 XY MStarguider::FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, Double_t cut, Double_t box, XY SearchCenter)1578 XY MStarguider::FindRoqueLamp(FilterLed &f, FilterLed &f2, Ring &CameraCenter, MTime &t, Double_t cut, Int_t box, XY SearchCenter) 1578 1579 { 1579 1580 // Set search Paremeters (FIXME: Get them from user input!) … … 1611 1612 } 1612 1613 1613 ZdAz MStarguider::FindStar(FilterLed &f, FilterLed &f2, Ring ¢er, MTime &t, Double_t cut, Double_t box, Double_t scalefactor = 1.0)1614 ZdAz MStarguider::FindStar(FilterLed &f, FilterLed &f2, Ring ¢er, MTime &t, Double_t cut, Int_t box, Double_t scalefactor = 1.0) 1614 1615 { 1615 1616 // Set search Paremeters (FIXME: Get them from user input!) … … 1850 1851 { 1851 1852 // SCALE FACTOR ASSUMED TO BE 70 1852 FindStar(f, f2, center, t, 3 .5, 70);1853 FindStar(f, f2, center, t, 3/*3.5*/, 70); 1853 1854 SendAmcTrigger("TPoint"); 1854 1855 } … … 1920 1921 1921 1922 Double_t imageclean = 1.5; 1922 Double_tboxradius = 60;1923 Int_t boxradius = 60; 1923 1924 //Double_t scalefactor = 1; 1924 1925 XY searchcenter(768/2-1,576/2+25); … … 1947 1948 1948 1949 Double_t imageclean = 5; 1949 Double_tboxradius = 60;1950 Int_t boxradius = 60; 1950 1951 //Double_t scalefactor = 1; 1951 1952 // XY searchcenter(sgcenter.GetX(),sgcenter.GetY()); … … 2016 2017 sgcenter.GetY()-293.6+28.5); 2017 2018 2018 fSao->CalcStars(stars, 530, 292, off.X(), off.Y());2019 fSao->CalcStars(stars, 530, 292, TMath::FloorNint(off.X()), TMath::FloorNint(off.Y())); 2019 2020 fSao->DrawStars(stars, cimg); 2020 2021 -
trunk/MagicSoft/Cosy/starg.cc
r4865 r8376 1 #include <iostream .h>1 #include <iostream> 2 2 3 3 #include <TROOT.h> … … 5 5 6 6 #include "MStarguider.h" 7 8 using namespace std; 7 9 8 10 /* ---------------------------------------------------------------------- */ -
trunk/MagicSoft/Cosy/testse.cc
r1953 r8376 1 #include <iostream .h>1 #include <iostream> 2 2 3 3 #include "network.h" 4 4 #include "shaftencoder.h" 5 6 using namespace std; 5 7 6 8 TROOT root("Cosy", "Magic Control System");
Note:
See TracChangeset
for help on using the changeset viewer.