Changeset 7707 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 05/09/06 14:18:19 (19 years ago)
- Location:
- trunk/MagicSoft/Cosy/main
- Files:
-
- 2 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;
Note:
See TracChangeset
for help on using the changeset viewer.