Ignore:
Timestamp:
02/15/05 16:05:41 (20 years ago)
Author:
mazin
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc

    r6289 r6488  
    177177        // Sometimes there are two reports with the same time
    178178        //
    179         if (reporttime->GetTime() == reportTime[n-1])
     179        if (reporttime->GetTime() == reportTime[n-2])
    180180        {
    181181            *fLog << warn <<"["<< GetName()
     
    219219    fSplineAz = new TSpline3("azimuth",
    220220                             reportTime.GetArray(), nominalAz.GetArray(), n-1);
     221
    221222   
    222223    if (fDebug)
    223224    {
     225        *fLog << n-1 << " " << reportTime.GetSize() << endl;
     226        *fLog << n-1 << " " << nominalZd.GetSize() << endl;
     227        *fLog << fFirstDriveTime.GetTime() << " " << fSplineZd->Eval((fFirstDriveTime.GetTime()+fLastDriveTime.GetTime())/2.) << endl;
    224228        TCanvas* c = new TCanvas();
    225229        c->Divide(2,1);
     
    313317
    314318    case kEventTime:
     319        time = fEvtTime->GetTime();       
     320
    315321        if (fDebug)
    316322          {
     
    364370              << zd << ", "  << az << "," << fRa << "," << fDec << ")" << endl;
    365371      }
    366    
     372
    367373    fPointingPos->SetLocalPosition( zd, az );
    368374    //fPointingPos->SetSkyPosition( fRa*TMath::DegToRad()/15, fDec*TMath::DegToRad());
Note: See TracChangeset for help on using the changeset viewer.