Ignore:
Timestamp:
12/01/09 13:03:41 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy/main
Files:
2 edited

Legend:

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

    r9522 r9523  
    225225//    if (fCosy->fStarguider)
    226226//        fCosy->fStarguider->SetPointingPosition(sla.GetRaDec());
    227 
    228 //    gLog << all << "=====> " << (int)(&sla==&fSlalib) << " " << fTrackType << " MJD=" << Form("%.13f", sla.GetMjd()) << " HA=" << sla.GetHourAngle() << " Alpha=" << sla.GetAlpha() << " fTrackPos.Ra()=" << fTrackPos.Ra() << " fTrackPos.Dec()=" << fTrackPos.Dec() << " Alt=" << sla.GetZdAzRad().Zd() << " Az=" << sla.GetZdAzRad().Az() << endl;
    229 }
    230 
    231 void MTracking::UpdateSlalib(Double_t dt=0)
     227}
     228
     229void MTracking::UpdateSlalib(Double_t dt)
    232230{
    233231    fSlalib.Now(dt);
     
    248246    const RaDec &dst = fSlalib.GetRaDecRad();
    249247
    250     ZdAz dest = fSlalib.GetZdAzRad();//fSlalib.CalcZdAz(dst);
    251 
    252     if (fTrackType<0)
    253        gLog << all << fSlalib.GetTime() << ": Tracking Planet" << endl;
     248    ZdAz dest = fSlalib.GetZdAzRad();
     249
     250    if (fTrackType>=0)
     251       gLog << all << fSlalib.GetTime() << ": Tracking Planet with Id " << fTrackType << endl;
    254252    gLog << all << fSlalib.GetTime() << ": Track Position " << dst.Ra()*kRad2Deg/15 << "h, " << dst.Dec()*kRad2Deg <<"deg" << endl;
    255253
     
    279277void MTracking::TrackPosition(const RaDec &dst)
    280278{
    281 
    282 //    gLog << all << "=====> dst.Ra()=" << dst.Ra() << " dst.Dec()=" << dst.Dec() << "   (deg?)" << endl;
    283 
    284279    fTrackPos  = dst;
    285280    fTrackType = -1;
     
    322317    // Get current nominal local position
    323318    UpdateSlalib();
    324     //fCosy->fRaDec = fSlalib.GetRaDec();
    325 
    326     ZdAz pos = fSlalib.GetZdAzRad();//fSlalib.CalcZdAz(fSlalib.GetRaDec());
     319
     320    ZdAz pos = fSlalib.GetZdAzRad();
    327321
    328322    // Some output
     
    363357        //
    364358        UpdateSlalib(dt);
    365         //fCosy->fRaDec = fSlalib.GetRaDec();
    366359
    367360        //
    368361        // Request nominal position for this time in the future (To+dt)
    369362        //
    370         const ZdAz pointing = fSlalib.GetZdAzRad(); //fSlalib.CalcZdAz(fSlalib.GetRaDec()); // [rad]
     363        const ZdAz pointing = fSlalib.GetZdAzRad();
    371364        ZdAz dest = fCosy->AlignTrackingPos(pointing);     // fix ambiguity
    372365
     
    461454    //SlaPlanets sla(fSlalib.GetObservatoryKey());
    462455    SlaPlanets sla(MObservatory::kMagic1);
    463 //    gLog << all << "====> KEYS " << (int)fSlalib.GetObservatoryKey() << " " << (int)sla.GetObservatoryKey() << " " << (int)fCosy->fObservatory << endl;
    464456
    465457    UpdateSlalib(sla);
    466 
    467     //ZdAz soll = sla.GetZdAz(); //sla.CalcZdAz(sla.GetRaDec()); // [rad]
    468458
    469459    //
     
    507497            UpdateSlalib(sla, mjdzd);
    508498
    509             ZdAz dummy = sla.GetZdAzRad();//sla.CalcZdAz(radec, mjdzd);
     499            ZdAz dummy = sla.GetZdAzRad();
    510500            dummy = fCosy->AlignTrackingPos(dummy);
    511501            fCosy->fZdAzSoll.Zd(dummy.Zd());
     
    518508            UpdateSlalib(sla, mjdaz);
    519509
    520             ZdAz dummy = sla.GetZdAzRad();//sla.CalcZdAz(radec, mjdaz);
     510            ZdAz dummy = sla.GetZdAzRad();
    521511            dummy = fCosy->AlignTrackingPos(dummy);
    522512            fCosy->fZdAzSoll.Az(dummy.Az());
  • trunk/MagicSoft/Cosy/main/MTracking.h

    r9516 r9523  
    3131
    3232    void UpdateSlalib(SlaPlanets &sla);
    33     void UpdateSlalib(Double_t dt);
     33    void UpdateSlalib(Double_t dt=0);
    3434    void UpdateSlalib(SlaPlanets &sla, Double_t mjd);
    3535
Note: See TracChangeset for help on using the changeset viewer.