Changeset 7296 for trunk/MagicSoft/Cosy
- Timestamp:
- 08/22/05 10:35:02 (19 years ago)
- Location:
- trunk/MagicSoft/Cosy
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/Changelog
r7230 r7296 1 1 -*-*- END -*-*- 2 2 3 2005/08/22 - Thomas Bretz 4 5 * caos/Ring.[h,cc]: 6 - added a sanity check for the case a led entry == NULL 7 8 * caos/Rings.[h,cc]: 9 - code cleanup 10 - added a sanity check to CalcRings 11 12 * devdrv/shaftencoder.h: 13 - added new member function GetPosDirCorrected 14 - added new member function GetOffsetDirCorrected 15 16 * main/MStarguider.cc: 17 - set number of minimum required LEDs for the ring calculation 18 to 3. With two LEDs you can NEVER calculate a ring! 19 - added another sanity check in FindStars 20 21 * main/MTracking.cc: 22 - replaced ?:-operators by new functions Get*DirCorrected 23 - made sure that if both directions have changed the reset 24 really causes the correct values to be used immediatly! 25 - added some code for future use 26 27 28 3 29 2005/07/28 - Florian Goebel 4 30 5 * videodev/FilterLed.[cc,h]6 - add GetMeanPositionCircle and FindStarCircle31 * videodev/FilterLed.[cc,h] 32 - add GetMeanPositionCircle and FindStarCircle 7 33 8 * devdrv/shaftencoder.[cc,h] 9 - add: fDirHasChanged, fDirChangedPos, fDirChangedOffset, 10 fDirection, fHysteresisPos, fHysteresisNeg 11 12 * main/MCosy.cc 13 - set faster acceleration and Velocity parameters in TrackPositionGRB 14 15 * main/MPointing.cc 16 - correct bug which always set speed to LO-SPEED 17 18 * main/MStarguider.[cc,h] 19 - add new Popup "Operation" (functionality is not ready yet) 20 - add new procedure: FindRoqueLamp 21 - in MStarguider::FindStar now use Leds::FindStarCircle 22 (instead of Leds::FindStar) 23 24 * main/MTracking.cc 25 - calculate DirHasChanged etc. 26 34 * devdrv/shaftencoder.[cc,h] 35 - add: fDirHasChanged, fDirChangedPos, fDirChangedOffset, 36 fDirection, fHysteresisPos, fHysteresisNeg 37 38 * main/MCosy.cc 39 - set faster acceleration and Velocity parameters in TrackPositionGRB 40 41 * main/MPointing.cc 42 - correct bug which always set speed to LO-SPEED 43 44 * main/MStarguider.[cc,h] 45 - add new Popup "Operation" (functionality is not ready yet) 46 - add new procedure: FindRoqueLamp 47 - in MStarguider::FindStar now use Leds::FindStarCircle 48 (instead of Leds::FindStar) 49 50 * main/MTracking.cc 51 - calculate DirHasChanged etc. 52 53 27 54 28 55 2005/04/11 - Thomas Bretz -
trunk/MagicSoft/Cosy/caos/Ring.cc
r4892 r7296 20 20 bool Ring::CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k) 21 21 { 22 if (leds.At(i)==NULL) 23 { 24 cout << "Ring::CalcCenter: Led i=" << i << " is NULL." << endl; 25 return kFALSE; 26 } 27 if (leds.At(j)==NULL) 28 { 29 cout << "Ring::CalcCenter: Led j=" << j << " is NULL." << endl; 30 return kFALSE; 31 } 32 if (leds.At(k)==NULL) 33 { 34 cout << "Ring::CalcCenter: Led k=" << k << " is NULL." << endl; 35 return kFALSE; 36 } 37 22 38 Double_t h1 = leds(i).GetY()- leds(j).GetY(); 23 39 24 40 if (h1==0) 25 41 { 26 Swap( &j, &k);42 Swap(j, k); 27 43 h1 = leds(i).GetY()- leds(j).GetY(); 28 44 if (h1==0) 29 45 { 30 cout << " h1==0" <<endl;46 cout << "Ring::CalcCenter: h1==0" <<endl; 31 47 return kFALSE; 32 48 } … … 37 53 if (h2==0) 38 54 { 39 Swap( &i, &j);55 Swap(i, j); 40 56 h2 = leds(j).GetY() - leds(k).GetY(); 41 57 if (h2==0) 42 58 { 43 cout << " h2==0" << endl;59 cout << "Ring::CalcCenter: h2==0" << endl; 44 60 return kFALSE; 45 61 } … … 54 70 if (m2-m1==0) 55 71 { 56 cout << " All three points in a row! (m2-m1==0)" << endl;72 cout << "Ring::CalcCenter: All three points in a row! (m2-m1==0)" << endl; 57 73 return kFALSE; 58 74 }
Note:
See TracChangeset
for help on using the changeset viewer.