Changeset 7707 for trunk/MagicSoft/Cosy
- Timestamp:
- 05/09/06 14:18:19 (19 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MStarguider.cc
r7622 r7707 1390 1390 1391 1391 Int_t MStarguider::CalcTrackingError(Leds &leds, MStarList &stars, 1392 ZdAz &d, MTime &t, double &bright )1392 ZdAz &d, MTime &t, double &bright, Int_t &num) 1393 1393 { 1394 1394 const Int_t max = leds.GetEntries(); … … 1420 1420 TArrayF x, y, mag; 1421 1421 1422 Int_tnum = 0;1422 num = 0; 1423 1423 1424 1424 // FIXME: Is predefined value 3 a good idea? … … 1459 1459 } 1460 1460 1461 d = TrackingError(x, y, mag, num);1462 1463 if (num <1)1461 Int_t numcor = 0; 1462 d = TrackingError(x, y, mag, numcor); 1463 if (numcor<1) 1464 1464 return 0; 1465 1465 … … 1547 1547 fTimeFromTp.Set(1970,1,1); 1548 1548 1549 return num ;1549 return numcor; 1550 1550 } 1551 1551 … … 2030 2030 fSkyBright->SetBackgroundColor(color); 2031 2031 2032 const Int_t rc = CalcTrackingError(spots, stars, fD, t, bright); 2032 Int_t numstars = 0; 2033 const Int_t rc = CalcTrackingError(spots, stars, fD, t, bright, numstars); 2033 2034 2034 2035 if ((bright <= 1.75* fLastBright) && (bright < 110)) … … 2051 2052 MDriveCom &com = *fCosy->GetDriveCom(); 2052 2053 com.SendStargReport(fStatus, fD, fSao->GetZdAz(), 2053 sgcenter, rc, bright,2054 sgcenter, numstars, rc, bright, 2054 2055 time.GetMjd(), 0, 0); // Report 2055 2056 } -
trunk/MagicSoft/Cosy/main/MStarguider.h
r7622 r7707 129 129 void ToggleCaosFilter(); 130 130 //void GetCoordinates(); 131 Int_t CalcTrackingError(Leds &, MStarList &, ZdAz &, MTime &, double &bright );131 Int_t CalcTrackingError(Leds &, MStarList &, ZdAz &, MTime &, double &bright, Int_t &num); 132 132 //void CalcTrackingError(Leds &, MStarList &); 133 133 ZdAz TrackingError(TArrayF &alt, TArrayF &az, TArrayF &mag, Int_t &num) const; -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc
r7338 r7707 220 220 } 221 221 222 bool MDriveCom::SendStargReport(UInt_t stat, ZdAz miss, ZdAz nompos, Ring center, Int_t n , Double_t bright, Double_t mjd, Double_t x, Double_t y)222 bool MDriveCom::SendStargReport(UInt_t stat, ZdAz miss, ZdAz nompos, Ring center, Int_t num, Int_t n, Double_t bright, Double_t mjd, Double_t x, Double_t y) 223 223 { 224 224 // miss [deg] … … 247 247 str += txt.Print("%05.1f ", center.GetX()); //number 248 248 str += txt.Print("%05.1f ", center.GetY()); //number 249 str += txt.Print("%04d ", n); //number 249 str += txt.Print("%04d ", n); //number of correleated stars 250 250 str += txt.Print("%03.1f ", bright); 251 251 str += txt.Print("%12.6f ", t.GetMjd()); // mjd 252 252 str += txt.Print("%.1f ", x); 253 253 str += txt.Print("%.1f ", y); 254 str += txt.Print("%04d ", num); //number of detected stars 254 255 255 256 return Send("STARG-REPORT", str, kTRUE); 256 257 } 258 259 260 261 262 257 } -
trunk/MagicSoft/Cosy/tcpip/MDriveCom.h
r7338 r7707 41 41 42 42 bool SendReport(UInt_t stat, RaDec rd, ZdAz so, ZdAz is, ZdAz er); 43 bool SendStargReport(UInt_t stat, ZdAz miss, ZdAz nompos, Ring center, Int_t n , Double_t bright, Double_t mjd, Double_t x, Double_t y);43 bool SendStargReport(UInt_t stat, ZdAz miss, ZdAz nompos, Ring center, Int_t num, Int_t n, Double_t bright, Double_t mjd, Double_t x, Double_t y); 44 44 bool SendStatus(const char *stat); 45 45 };
Note:
See TracChangeset
for help on using the changeset viewer.