Changeset 7769


Ignore:
Timestamp:
06/28/06 14:39:18 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MStarguider.cc

    r7768 r7769  
    19571957    // Position corresponding to the camera center (53.2, 293.6)
    19581958    //Ring skycenter(392, 318);
    1959     Ring skycenter(768/2, 576/2);
    19601959    // MStarList spots;
    19611960
     
    19831982        // 53.2 and 293.6 are the "preliminary" camera center
    19841983        // -9 and 28.5 are the offsets of the pointing position in the sky
    1985         const XY offset(53.2+9, 293.6-28.5);
     1984        Ring skycenter(0, 0);
    19861985
    19871986        const Bool_t centerisvalid = sgcenter.GetX()>0 && sgcenter.GetY()>0;
    19881987        if (centerisvalid)
    1989             skycenter.SetXY(sgcenter.GetX() - offset.X(),
    1990                             sgcenter.GetY() - offset.Y());
     1988            skycenter.SetXY(sgcenter.GetX() -  53.2,
     1989                            sgcenter.GetY() - 293.6);
    19911990
    19921991        // we obtain stars in the effective star FOV and draw them.
     
    19941993        // We determine the ideal starfield using camera sagging info
    19951994        // from the LEDs
    1996         fSao->CalcStars(stars, 530, 292, skycenter.GetX(), skycenter.GetY());
     1995        fSao->CalcStars(stars, 530, 292, skycenter.GetX()-9, skycenter.GetY()+28.5);
    19971996        fSao->DrawStars(stars, cimg);
    19981997
Note: See TracChangeset for help on using the changeset viewer.