Index: /trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc
===================================================================
--- /trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc	(revision 6487)
+++ /trunk/MagicSoft/Mars/mpointing/MPointingPosInterpolate.cc	(revision 6488)
@@ -177,5 +177,5 @@
 	// Sometimes there are two reports with the same time
 	//
-	if (reporttime->GetTime() == reportTime[n-1])
+	if (reporttime->GetTime() == reportTime[n-2])
 	{ 
 	    *fLog << warn <<"["<< GetName() 
@@ -219,7 +219,11 @@
     fSplineAz = new TSpline3("azimuth",
 			     reportTime.GetArray(), nominalAz.GetArray(), n-1);
+
     
     if (fDebug)
     {
+        *fLog << n-1 << " " << reportTime.GetSize() << endl;
+        *fLog << n-1 << " " << nominalZd.GetSize() << endl;
+        *fLog << fFirstDriveTime.GetTime() << " " << fSplineZd->Eval((fFirstDriveTime.GetTime()+fLastDriveTime.GetTime())/2.) << endl;
 	TCanvas* c = new TCanvas();
       	c->Divide(2,1);
@@ -313,4 +317,6 @@
 
     case kEventTime:
+        time = fEvtTime->GetTime();       
+
 	if (fDebug)
 	  {
@@ -364,5 +370,5 @@
 	      << zd << ", "  << az << "," << fRa << "," << fDec << ")" << endl;
       }
-    
+
     fPointingPos->SetLocalPosition( zd, az );
     //fPointingPos->SetSkyPosition( fRa*TMath::DegToRad()/15, fDec*TMath::DegToRad());
