Ignore:
Timestamp:
03/17/05 11:02:59 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/main
Files:
3 edited

Legend:

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

    r4255 r6841  
    415415
    416416void MCosy::TrackPosition(const RaDec &dst) // ra, dec [rad]
     417{
     418    MTracking track(this, lout);
     419    track.SetOut(fOutRep);
     420//#ifdef EXPERT
     421//    track.SetPointAccDec(0.4, 0.4);
     422//    track.SetPointVelocity(0.2); // fast: 0.6, slow: 0.2
     423//#else
     424    track.SetPointAccDec(0.2, 0.1);
     425    track.SetPointVelocity(0.1);
     426//#endif
     427    track.SetTrackAccDec(0.1, 0.1);
     428
     429    track.TrackPosition(dst);
     430}
     431
     432void MCosy::TrackPositionGRB(const RaDec &dst) // ra, dec [rad]
    417433{
    418434    MTracking track(this, lout);
     
    701717        return (void*)0x8888;
    702718
     719    case WM_GRB:
     720        //cout << "WM_Track: START" << endl;
     721        {
     722            RaDec dest = ((RaDec*)mp)[0];
     723            if (fStarguider)
     724                fStarguider->SetPointingPosition(((RaDec*)mp)[1]);
     725            if (!CheckNetwork())
     726                return (void*)0xebb0;
     727            TrackPositionGRB(dest*kDeg2Rad);
     728        }
     729        //cout << "WM_Track: done. (return 0x8888)" << endl;
     730        return (void*)0x8888;
     731
    703732    case WM_NEWTRACK:
    704733        //cout << "WM_NewTrack: START" << endl;
  • trunk/MagicSoft/Cosy/main/MCosy.h

    r4865 r6841  
    3737#define WM_POSITION1    0x100f
    3838#define WM_ENDSWITCH    0x1010
     39#define WM_GRB          0x1011
    3940
    4041class ShaftEncoder;
     
    153154    int  SetPosition(const ZdAz &dst, Bool_t track=kFALSE);
    154155    void TrackPosition(const RaDec &dst); // ra, dec [rad]
     156    void TrackPositionGRB(const RaDec &dst); // ra, dec [rad]
    155157
    156158    void TerminateApp();
  • trunk/MagicSoft/Cosy/main/MStarguider.cc

    r4888 r6841  
    12191219    if (outrep.Lock("MStarguider::FindStar"))
    12201220    {
    1221         outrep << "FINDSTAR-REPORT " << MTime(-1) << " " << setprecision(7);
     1221        outrep << "FINDSTAR-REPORT 00 " << MTime(-1) << " " << setprecision(7);
    12221222        outrep << 90-za0.Alt() << " " << za0.Az() << " ";
    12231223        outrep << za1.Zd() << " " << za1.Az() << " ";
     
    13671367            fStargCaos->Run(img, kFALSE, kFALSE, pos, t, 30, 3.0); // [px]
    13681368        const Float_t pixsize = atof(fPixSize->GetText()); // [arcsec/px]
    1369         sgcenterzdaz.Zd((sgcenter.GetY()-293.6) * pixsize /3600 );
     1369
     1370        // BE CAREFULL: This transformation is WRONG. It is just
     1371        // a transformation of units, but this implies, that the
     1372        // coordiante axis in both units look the same. This is
     1373        // wrong exspecially near the zenith were az-lines are highly
     1374        // curved around the zenith!
     1375        sgcenterzdaz.Zd((sgcenter.GetY()-293.6) * pixsize /3600 );
    13701376        sgcenterzdaz.Az((sgcenter.GetX()-53.2) * pixsize /3600 );
    13711377#ifdef EXPERT
     
    14871493        f2.DrawCircle(skycenter, 3.84*.5*74.0, 0x0a);
    14881494
     1495        if (fCosy) {
     1496            MDriveCom &com = *fCosy->GetDriveCom();
     1497            com.SendStargReport(fStatus, fD, fSao->GetZdAz(), sgcenter, spots.GetEntries(), bright, time.GetMjd());    // Report
     1498        }
    14891499    } //CalcStars
    1490 
    1491     if (fCosy) {
    1492         MDriveCom &com = *fCosy->GetDriveCom();
    1493         com.SendStargReport(fStatus, fD);    // Report
    1494     }
    14951500
    14961501    // Draw Circles around center of Camera
Note: See TracChangeset for help on using the changeset viewer.