Changeset 7296 for trunk/MagicSoft


Ignore:
Timestamp:
08/22/05 10:35:02 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/Changelog

    r7230 r7296  
    11                                                                  -*-*- END -*-*-
    22
     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
    329 2005/07/28 - Florian Goebel
    430
    5   * videodev/FilterLed.[cc,h]
    6     - add GetMeanPositionCircle and FindStarCircle
     31   * videodev/FilterLed.[cc,h]
     32     - add GetMeanPositionCircle and FindStarCircle
    733 
    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
    2754
    2855 2005/04/11 - Thomas Bretz
  • trunk/MagicSoft/Cosy/caos/Ring.cc

    r4892 r7296  
    2020bool Ring::CalcCenter(const Leds &leds, Int_t i, Int_t j, Int_t k)
    2121{
     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
    2238    Double_t h1 = leds(i).GetY()- leds(j).GetY();
    2339
    2440    if (h1==0)
    2541    {
    26         Swap(&j, &k);
     42        Swap(j, k);
    2743        h1 = leds(i).GetY()- leds(j).GetY();
    2844        if (h1==0)
    2945        {
    30             cout << "h1==0" <<endl;
     46            cout << "Ring::CalcCenter: h1==0" <<endl;
    3147            return kFALSE;
    3248        }
     
    3753    if (h2==0)
    3854    {
    39         Swap(&i, &j);
     55        Swap(i, j);
    4056        h2 = leds(j).GetY() - leds(k).GetY();
    4157        if (h2==0)
    4258        {
    43             cout << "h2==0" << endl;
     59            cout << "Ring::CalcCenter: h2==0" << endl;
    4460            return kFALSE;
    4561        }
     
    5470    if (m2-m1==0)
    5571    {
    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;
    5773        return kFALSE;
    5874    }
Note: See TracChangeset for help on using the changeset viewer.