Index: /trunk/MagicSoft/Cosy/Changelog
===================================================================
--- /trunk/MagicSoft/Cosy/Changelog	(revision 7772)
+++ /trunk/MagicSoft/Cosy/Changelog	(revision 7773)
@@ -1,3 +1,14 @@
                                                                   -*-*- END -*-*-
+ 2006/06/29 Thomas Bretz
+
+   * main/MStarguider.cc:
+     - fixed a bug which gave a starguider mispointing which was wrong
+       by the pointing position.
+
+   * catalog/StarCatalog.cc:
+     - replaced some Float_t by Int_t
+
+
+
  2006/06/28 Thomas Bretz
 
Index: /trunk/MagicSoft/Cosy/catalog/StarCatalog.cc
===================================================================
--- /trunk/MagicSoft/Cosy/catalog/StarCatalog.cc	(revision 7772)
+++ /trunk/MagicSoft/Cosy/catalog/StarCatalog.cc	(revision 7773)
@@ -159,6 +159,6 @@
     // Offsets to shift [-n/2;n/2] to [0;n] and to
     // move the stars in the counterdirection of the LEDs
-    const Float_t offx = 768/2 + xo;
-    const Float_t offy = 576/2 + yo;
+    const Int_t offx = 768/2 + xo;
+    const Int_t offy = 576/2 + yo;
 
     // Allow catalog stars to be a bit outside [0.2deg] of the
Index: /trunk/MagicSoft/Cosy/main/MStarguider.cc
===================================================================
--- /trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 7772)
+++ /trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 7773)
@@ -1368,5 +1368,5 @@
 #endif
 
-    //AltAz pos0 = fSao->CalcAltAzFromPix(768/2,    576/2)*kRad2Deg;
+    AltAz pos0 = fSao->CalcAltAzFromPix(768/2,    576/2)*kRad2Deg;
     AltAz pos1 = fSao->CalcAltAzFromPix(768/2+mx, 576/2+my)*kRad2Deg;
 /*
@@ -1376,7 +1376,7 @@
         fout1 << fCosy->GetPointingPos() << " ";
     fout1 << -pos1.Alt() << " " << pos1.Az() << endl;
-
+ */
     pos1 -= pos0;
-
+/*
     ofstream fout2("tracking_error.txt", ios::app);
     fout2 << setprecision(10) << fSao->GetMjd()-52000 << " ";
