Index: trunk/MagicSoft/Cosy/Changelog
===================================================================
--- trunk/MagicSoft/Cosy/Changelog	(revision 1953)
+++ trunk/MagicSoft/Cosy/Changelog	(revision 1954)
@@ -675,835 +675,2 @@
      - added Reset Bending
      - changed the MAC and SE Id to be a resource value (from .cosyrc)
-
-
-
- 2002/12/18 - Thomas Bretz (LaPalma):
-
-   * Makefile:
-     - added cosy.so
-   
-   * base/BaseLinkDef.h, base/Makefile:
-     - added MGList
-
-   * catalog/SlaStars.cc:
-     - changed temperature to 20degC
-     - changed wavelength to 0.55
-     
-   * main/MCosy.[h,cc]:
-     - added correct gear ratio for magic
-     - added support for mode in which not all clients are available
-     - added demo and shaftencoder mode
-     - added support for the bending correction
-     - removed support for 'the shortest distance' when positioning
-
-   * videodev/Makefile, videodev/VideodevLinkDef.:
-     - added Filter2 for Starguider
-
-   * base/MStarList.[h,cc], base/MStar.[h,cc], main/MBending.[h,cc]:
-     - added
- 
-   * starg.cc:
-     - slight changes to get rid of the segfault when program ends
-
-   * base/MGList.h:
-     - changed from TOrdCollection to TList
-     - added some debug stuff
-
-   * candrv/network.cc:
-     - added 'Zombie' support
-   
-   * candrv/nodedrv.[h,cc]:
-     - added WaitForSDO return type
-     - added 'Zombie' support
-   
-   * devdrv/macs.[h,cc]:
-     - added 0x6501, econder resolution
-
-   * devdrv/shaftencoder.[h,cc]:
-     - added 'Zombie' support
-     - added data member for phys resolution
- 
-   * gui/MGCosy.cc:
-     - added SetAspect-stuff
- 
-   * gui/MGEmbeddedCanvas.cc:
-     - removed debugging output
- 
-   * gui/MGImage.[h,cc]:
-     - changed update not to produce X11 Asyn Errors
- 
-   * gui/MGSkyPosition.[h,cc], gui/MGVelocity.cc:
-     - removed some wrong floor-calls
- 
-   * gui/MGStarguider.[h,cc]:
-     - added better support for camera display update
-   
-   * macros/rootlogon.C:
-     - added paths
-
-
-
- 2002/11/12 - Thomas Bretz (LaPalma):
-
-    * aposs/Manual.m:
-      - fixed a bug which caused the drive to shake in case is was
-        switched on again after an emergency switch off
-
-
- 
- 2002/09/24 - Thomas Bretz (LaPalma):
-
-    * Starguider.[h,cc]:
-      - added some new menu options
- 
-    * cosy.cc:
-      - added the mode switch
-      - tried to get rid of the seg-fault at the end of the program.
-
-    * base/BaseLinkDef.h:
-      - aded MStar
-
-    * base/Makefile:
-      - added MStar.cc
-      - added MStarList.cc
-
-    * base/coord.h:
-      - added <<-/>>-operators for the coordinates
-
-    * base/timer.h:
-      - added getters for d/m/y
-
-    * catalog/StarCatalog.[h,cc]:
-      - added some consts
-      - implemented MStarList-usage
-   
-    * devdrv/shaftencoder.cc:
-      - fixed segfaults triing to display values on non existing labels
-
-    * gui/MGCoordinate.[h,cc]:
-      - fixed a problem typing in negative coordinates<1
-
-    * MCosy.[h,c]:
-      - deleted
-
-    * gui/MGCosy.[h,cc]:
-      - added many new options
-      - added time display
-
-    * gui/MGStarguider.[h,cc]:
-      - added many new options
-
-    * main/MainLinkDef.h, main/Makefile:
-      - added MBending
- 
-    * main/MBending.[h,cc]:
-      - added
-
-    * videodev/Camera.cc:
-      - added some debugging output
-
-    * videodev/Filter.cc:
-      - changed filter cut from 3.0 to 2.5
-
-
-
- 2002/07/10 - Thomas Bretz:
-
-   * base/coord.h:
-     - added some member functions
-
-   * main/MBending.[h,cc]:
-     - added
-
-
-
- 2002/06/03 - Thomas Bretz:
-
-   * gui/MGImage.cc:
-     - fixed a bug in the destructor while freeing fBuffer
-
-
-
- 2002/04/12 - Thomas Bretz:
-
-   * Makefile.conf.linux-gnu:
-     - added -D_REENTRANT
-
-   * base/MThread.cc:
-     - added debug output
-
-   * candrv/canopen.cc:
-     - added debug output to destructor
-
-   * candrv/vmodican.cc:
-     - added debug output to failing read
-     - added some general debug output
-
-   * catalog/SlaStars.[h,cc]:
-     - added CalcRaDecFast
-     - added Calc*AzFast
-     - added some comments
-
-   * devdrv/macs.cc:
-     - added some HandleSDOOK output
-     - changed timer frequency to Guard Time third instead of half
-     - added some degub output
-     - changed timer to single shot timer
-     - switched off Mac timeout handling!!!
-
-   * gui/MGCosy.cc:
-     - added demo mode for 'Tag-der-Physik'
-
-   * gui/MGSkyPosition.cc:
-     - changed 'dots' to fast calculation functions
-
-   * gui/MGEmbeddedCanvas.cc:
-     - added some output
-     - fixed a bug with zero range
-
-   * main/MCosy.[h,cc]:
-     - added and changed some output
-     - changed LimitSpeed
-     - changed TalkThread
-       + only change offset when a new value for this axis is available
-       + reset the HasChanged flag before testing it
-
-
-
- 2002/04/11 - Thomas Bretz:
- 
-   * base/MThread.[h,cc]:
-     - added priority to constructor
-
-   * base/coord.h:
-     - added setter functions to RaDec
-
-   * base/msgqueue.[h,cc]:
-     - added some comments
-
-   * candrv/network.cc:
-     - HasError now checks all nodes
-
-   * candrv/nodedrv.[h,cc]:
-     - fixed some buggy output
-
-   * candrv/vmodican.cc:
-     - removed nonsens SetPriority (doesn't have any effect)
-
-   * gui/MGCosy.cc:
-     - replaced colors by the correct requested colors
-
-   * gui/MGSkyPosition.[h,cc]:
-     - added dots for the position in the past and future
-
-
-
- 2002/04/04 - Thomas Bretz:
- 
-   * cosy.cc:
-     - redirected logging output also to screen
-
-   * base/msgqueue.cc:
-     - qualified void-pointer in delete-statements
-
-   * candrv/canopen.cc, candrv/vmodican.cc, candrv/network.cc:
-     - added some more output
-
-   * candrv/vmodican.cc:
-     - added a more informative ouput in case of open fails and exit
-
-   * videodev/Camera.cc:
-     - qualified return value of mmap
-
-
-
- 2001/12/21 - Thomas Bretz:
- 
-   * candrv/*.cc:
-     - added comments
-
-   * candrv/*.[cc,h], devdrv/*.[cc,h]:
-     - replaced struct timeval by timeval_t
-
-   * .rootrc:
-     - added
-     
-   * Makefile:
-     - changed to create a shared object (for html docu)
-   
-   * macros/dohtml.C:
-     - added
-     
-   * macros/rootlogon.C:
-     - added
-   
-   * subdir lib:
-     - added
-
-
-
- 2001/12/12 - Thomas Bretz:
- 
-   * base/coord.h:
-     - added constants for unit transformations
-  
-   * base/msgqueue.h:
-     - replaced pthread.h by thread.h
-
-   * base/timer.h:
-     - removed unistd.h
-     - added forward declaration for timeval
-
-   * candrv/CandrvLinkDef.h:
-     - added VmodIcan
-     - added CanOpen
-     - added Network
-     - added NodeDrv
-     - added PendingSDO
-     - added PendingSDOList
-  
-   * candrv/nodedrv.h, candrv/sdolist.h, candrv/vmodican.h,
-     videodev/Camera.h, videodev/Writer.h:
-     - added ClassDef
-     - added some declarations for __CINT__ case
-
-   * base/MThread.h:
-     - added some declarations for __CINT__ case
-
-   * base/threads.h:
-     - added
-
-   * catalog/CatalogLinkDef.h:
-     - added Slalib+
-     - added SlaStars+
-     - added SlaPlanets+
-     - added SaoFile+
-     - added StarCatalog+
-
-   * catalog/SlaStars.h:
-     - added ClassDef
-     - included coord.h for coordation tranformations
-
-   * catalog/SlaStars.cc, catalog/Slalib.cc, gui/MGSkyPosition.cc:
-     - added ClassImp
-     - changed slalib macros to coord.h constants
-  
-   * catalog/StarCatalog.h:
-     - added ClassDef
-     - changed slalib macros to coord.h constants
-
-   * devdrv/DevdrvLinkDef.h:
-     - added Macs+;
-     - added ShaftEncoder+;
-
-   * gui/GuiIncl.h:
-     - added coord.h
-  
-   * gui/GuiLinkDef.h:
-     - added MGAccuracy+;
-     - added MGCoordinate+;
-     - added MGCoordinates+;
-     - added MGEmbeddedCanvas+;
-     - added MGImage+;
-     - added MGSkyPosition+;
-     - added MGVelocity+;
-     - added MGCosy+;
-     - added MGStarguider+;
-
-   * gui/MGCoordinate.[h,cc]:
-     - changed Flist to pointer type
-
-   * gui/MGCosy.cc:
-     - added ClassImp
-     - fixed a bug which causes 'Exit' not to work
-     - changed slalib macros to coord.h constants
-
-   * gui/MGCosy.h:
-     - added ClassDef
-  
-   * gui/MGEmbeddedCanvas.h:
-     - added ClassImp
-     - removed consts
-  
-   * gui/MGStarguider.[h,cc]:
-     - added ClassImp/Def
-     - change fList to pointer type
-     - change fRaDec to pinter type
-     - changed fSao to pointer type
-
-   * main/MCosy.[h,cc]:
-     - added ClassImp
-     - changed order
-     - added comments
-     - changed slalib macros to coord.h constants
-     - changed defines to enums
-  
-   * main/MainCint.h:
-     - removed
-  
-   * main/MainLinkDef.h:
-     - added MCosy
-
-   * devdrv/Makefile, candrv/Makefile, catalog/Makefile, gui/Makefile,
-     main/Makefile, videodev/Makefile:
-     - added CINTHEADERS
-
-   * candrv/canopen.cc, candrv/network.cc,candrv/nodedrv.cc, candrv/sdolist.cc
-     candrv/vmodican.cc, catalog/SaoFile.cc, catalog/SlaPlanets.cc,
-     catalog/StarCatalog.cc, devdrv/macs.cc, devdrv/shaftencoder.cc,
-     gui/MGAccuracy.cc, gui/MGCoordinate.cc, gui/MGCoordinates.cc,
-     gui/MGEmbeddedCanvas.cc, gui/MGImage.cc, gui/MGVelocity.cc,
-     videodev/Camera.cc, videodev/Filter.cc, videodev/Writer.cc:
-     - added ClassImp
-
-   * candrv/network.h, catalog/SaoFile.h, catalog/SlaPlanets.h,
-     catalog/Slalib.h, devdrv/macs.h, devdrv/shaftencoder.h,
-     gui/MGAccuracy.h, gui/MGCoordinate.h, gui/MGCoordinates.h,
-     gui/MGImage.h, gui/MGSkyPosition.h, gui/MGVelocity.h,
-     videodev/Filter.h:
-     - added ClassDef
-
-   * videodev/VideodevLinkDef.h:
-     - added Writer+;
-     - added Filter+;
-     - added Camera+;
-
-
-
- 2001/09/10 - Thomas Bretz:
- 
-   * base/timer.[h,cc]:
-     - added dome comments
-     
-   * candrv/canopen.[cc,h]:
-     - added boolean in SendSDO to suppress occurance in SDO list
-     
-   * candrv/nodedrv.[h,cc]:
-     - added Names for Node
-     - added boolean in SendSDO to suppress occurance in SDO list
-     
-   * devdrv/macs.[h,cc]:
-     - changed GetId() to GetNodeName() in logging output
-     - made timeout timer periodic again
-     - added timeout for Mac response (added SDOOK)
-     - added Name for Node
-     
-   * devdrv/shaftencoder.[h,cc]:
-     - changed GetId() to GetNodeName() in logging output
-     - added Name for Node
-     
-   * main/MCosy.[h,cc]:
-     - renamed fAlt1 to fZd1
-     - renamed fAlt2 to fZd2
-
-
-
- 2001/09/07 - Thomas Bretz:
- 
-   * aposs/Magic.m:
-     - implemented timeout if cosy crashes
-     
-   * candrv/nodedrv.[h,cc]:
-     - Changed ms in WaitForSDO to signed
-     
-   * devdrv/macs.[h,cc]:
-     - added 'case 0x4000'
-     - added SetTimeout
-     - added ReqTimeout
-     - added EnableTimeout
-     - added disabling Timeout to Init
-     - changed all upper case 'strings' to lower case
-     - added HandleTimer
-
-   * main/MCosy.cc:
-     - added enableing timeout for Mac1, Mac2
-
-
-     
- 2001/09/06 - Thomas Bretz:
-
-   * MCosy.[cc,h]
-     - moved to main
-     - moved logging files to log dir
-     
-   * MStarguider.[h,cc]
-     - moved to main
-   
-   * Starguider.[h,cc]:
-     - renamed to MGStarguider.[h,cc]
-     - moved to gui dir
-     
-   * cosy.cc:
-     - moved logging file to log dir
-     
-   * starg.cc:
-     - removed InitGui stuff
-
-
-
- 2001/08/30 - Thomas Bretz:
- 
-   * MCosy.[h,cc]
-     - fixed some small bugs in tracking and positioning
-     - reorganized StopMovement and CheckForError
-     - added code into LimitSpeed
-     - added cosy.err
-     - rewrote MTTalk not to ba detached
-     - reorganized the code of MTTalk
-     - added StopMovement, WaitForEndMovement and IsPositioning
-     
-   * Starguider.cc:
-     - ready for new MGCoordinates-Constructor
-     
-   * base/coord.h:
-     - added pre-'-' operator
-     
-   * devdrv/shaftencoder.[h,cc]:
-     - introduced an HasChanged - flag
-     
-   * gui/MGAccuracy.cc:
-     - replaced floats by doubles in accuracy calculation,
-       gave wrong values
-       
-   * gui/MGCoordinate.[h,cc]:
-     - made a bit wider
-     - added support for hms-system
-     
-   * gui/MGCoordinates.[h,cc]:
-     - changed to use two fixed systems RaDec (hms), ZdAz(dms)
-     
-   * gui/MGCosy.cc:
-     - added new MGCoordinates
-     - moved two MGCoordinates to CreateTabs
-     - renamed CreateButton to CreateTabs
-     - made MGCoordinates a Client of the two Tabs
-     - transform Ra of RaDec MGCoordinates to Degrees.
-     - Introduced StartPos, StartTrack
-     
-   * gui/MGVelocity.cc:
-     - added displaying values of speed
-
-
-     
- 2001/08/29 - Thomas Bretz:
-
-   * base/BaseLinkDef.h, base/BaseIncl.h, 
-     candrv/CandrvIncl.h, candrv/CandrvLinkDef.h,
-     catalog/CatalogLinkDef.h, catalog/CatalogIncl.h,
-     devdrv/DevdrvIncl.h, devdrv/DevdrvLinkDef.h,
-     gui/GuiLinkDef.h, gui/GuiIncl.h,
-     slalib/SlalibIncl.h, slalib/SlalibLinkDef.h,
-     videodev/VideodevLinkDef.h, videodev/VideodevIncl.h:
-     - added
-     
-   * Makefile.rules:
-     - added CINTHEADERS
-     
-   * cosy.cc:
-     - changed logging to MLog
-     
-   * base/Makefile:
-     - added MLog and MLogManip
-     
-   * base/log.h, candrv/canopen.[h,cc], candrv/network.[h,cc],
-     candrv/nodedrv.[h,cc], candrv/vmodican.[h,cc],
-     devdrv/macs.[h,cc]
-     - changed from ostream to MLog
-     
-   * devdrv/shaftencoder.[h,cc]
-     - changed from ostream to MLog
-     - changed buffering of values 
-     - removed old updating thread stuff
-     
-   * catalog/SlaStars.[h,cc]:
-     - added GetApproxVel
-     
-   * gui/MGAccuracy.cc:
-     - fixed the wrong deg2rad value
-     - added more accurate calculation of one dimensional
-       tracking error value
-     
-   * MGCosy.[h,cc]:
-     - added a TGListBox
-     - added some Labels to display offset as value
-     - removed offset display
-     - changed layout of dialog
-     - added layout manager
-     - added status frame
-     - added tabs
-     - added status display and update
-     
-   * gui/MGEmbeddedCanvas.cc:
-     - removed raised frame around embedded canvas
-     - enhanced size by 1
-     
-   * gui/MGSkyPosition.cc:
-     - a new position checks now for a new angle, too
-     - removed debugging output
-     
-   * slalib/Makefile:
-     - added altaz.c
- 
-   * MCosy.[cc,h]:
-     - added fStatus support and update
-     - added some new function to outsource some code from 
-       positioning and tracking algorithms
-     - TerminateApp now sends WM_QUIT
-     - removed comments with old GUI thread
-     - added a missing bracket, which prevents us from stopping
-       a positioning command
-     - changed some output from cout to lout
-     - added empty prototype to Limit speed in tracking mode
-     - changed constructor to use of MLog
-
-   * base/MGList.h:
-     - added DBG_MGLIST for debugging
-     
-   * gui/MGCoordinate.cc:
-     - removed logging statement from destructor
-     
-   * gui/MGVelocity.cc:
-     - the factor 4 is now applied outside of the dialog.
-
-
-
- 2001/08/23 - Thomas Bretz:
-
-   * gui/MGEmbeddedCanvas.[h,cc]:
-     - added
-     
-   * gui/MGVelocity.[h,cc]:
-     - added
-     
-   * MCosy.[h,cc]:
-     - added GetRePosPdo
-     - changed fOffset to an offset between the se and re system
-     - changed old fOffset to fTrackingError which gives you a good
-       estimate what the tracking error really is
-     - changed the weighting of fOffset from 0.1 to 0.3
-     - reordered some statements for a better overview
-     - changed update of GUI from thread to a timer (s.HandleTimer)
-
-   * Makefile:
-     - added libpthread.a
-     - reordered libraries
-     
-   * gui/MGAccuracy.[h,cc]:
-     - changed the layout
-     - make use of TGaxis
-     - added the numbers as text into canvas
-     - added a title
-     - derived from MEmbeddedCanvas
-     
-   * gui/MGCosy.[h,cc]:
-     - changed layout
-     - added canvas for velocity
-     - added canvas for offset
-     
-   * gui/MGSkyPosition.[h,cc]:
-     - added position as text
-     - added axis labels
-     - derived from MEmbeddedCanvas
-     - reorganized parts of the existing code
-
-
-
- 2001/08/17 - Thomas Bretz:
-
-    * Added:
-      - catalog/SlaStars.cc
-      - catalog/SlaStars.h
-      - catalog/SlaPlanets.cc
-      - catalog/SlaPlanets.h
-      - gui/MGAccuracy.cc
-      - gui/MGAccuracy.h
-
-    * MCosy.[h,cc]:
-      - removed dependance from MGSkyPosition
-      - changed Timer function names
-      - moved timer calls into Slalib calls
-      - changed Slalib to SlaStars
-      - added fAccuracy
-      - added accuracy display to MTGui
-    
-    * Makefile:  
-      - changed order of libraries
-    
-    * Starguider.cc:
-      - changed Timer function names
-    
-    * base/timer.[h,cc]
-      - changed GetTime -> Now
-      - changed GetMjd  -> CalcMjd
-    
-    * catalog/Makefile:
-      - added new file SlaStars.cc
-      - added new file SlaPlanets.cc
-    
-    * catalog/Slalib.[h,cc]:
-      - moved star dependent functions to derived class SlaStars
-      - changed name of Set to SetMjd
-      - made SetMjd virtual
-      - derives from Timer now
-      - added conversion function for XYZ->ZdAz
-    
-    * catalog/StarCatalog.cc:
-      - moved timer calls into Slalib calls
-      - changed Slalib to SlaStars
-
-    * devdrv/macs.cc:
-      - changed names of timer function calls
-
-    * devdrv/shaftencoder.cc:
-      - changed names of timer function calls
-      - changed some cout's to lout's
-    
-    * gui/MGCosy.[h,cc]:
-      - added fAccuracy
-      - moved timer calls into Slalib calls
-      - changed Slalib to SlaStars
-    
-    * gui/MGSkyPosition.[h,cc]:
-      - added display of planet positions
-
-    * slalib/Makefile:
-      - added missing files
-
-
-
- 2001/08/15 - Thomas Bretz:
-
-    * Added:
-      - Makefile.conf.general
-      - gui/Makefile
-      - base/Makefile
-      - candrv/Makefile
-      - catalog/Makefile
-      - slalib/Makefile
-      - videodev/Makefile
-      - devdrv/Makefile
-      - base/MThread.[h,cc]
-      - base/MTimeout.[h, cc]
-      - mgui/MGSkyPosition.[h, cc]
-      - catalog/Slalib.[h,cc]
-     
-    * .cosyrc:
-      - changed names
-      - added HomeTime
-   
-    * MCosy.[h,cc]:
-      - added home time
-      - added MTGui, MTTalk
-      - added reading environment
-   
-    * Makefile, Makefile.conf.linux-gnu, Makefile.rules
-      - changed to Mars style
-   
-    * Starguider.cc:
-      - changed include timer.g to base/timer.h
-   
-    * Starguider.[h,cc]:
-      - renamed Execute to ProcessFrame
- 
-    * cosy.cc:
-      - removed unnecessary includes
-   
-    * base/MGList.h:
-      - added debug output
-   
-    * base/msgqueue.cc:
-      - added comments
-   
-    * base/msgqueue.h:
-      - made Break const
-   
-    * candrv/canopen.[h,cc]:
-      - made CobId const
-   
-    * candrv/network.[h,cc]:
-      - fixed typo
-      - StopReceiver -> VmodIcan::Stop
-      - made HasError const
-   
-    * candrv/nodedrv.[h,cc]:
-      - added timeout to WaitForSdo
-   
-    * candrv/sdolist.[h,cc]:
-      - made IsPending const
-     
-    * candrv/vmodican.[h,cc]:
-      - changed ReceiveThread to new stylish MThread
-   
-    * devdrv/macs.[h,cc]:
-      - changed SetHome to use a maximum positioning time
-      - added comments
-      - replaces SetSyncMode by StartPosSync and StartVelSync
-
-    * devdrv/shaftencoder.[h,cc]:
-      - removed gui thread (the update is done by MTGui now)
-   
-    * gui/MGCosy.[h,cc]:
-      - some small changed
-      - removed fList->Delete()
-      - added MSkyPosition-Object
-      - gSystem->ExitLoop() replaced by gSystem->Terminate(0)
-   
-    * videodev/Camera.[h,cc]:
-      - renamed Execute to ProcessFrame
-
-
-   
- 2001/05/25 - Thomas Bretz:
- 
-    * .cosyrc:
-      - added
-      
-    * MCosy.[h,cc]:
-      - changed the error handling os SetPosition
-      - added resources from environment-file '.cosyrc'
-      - added WM_WAIT
-      - added support for Mac3 (Synchronisation)
-      - added software endswitch
-      
-    * macs.[h,cc]:
-      - emhanced error handling
-      - added sync support
-      
-    * timer.h:
-      - H(), M(), S() added
-      
-    * network.[h,cc]:
-      - HasError() added
-
-    * nodedrv.[h,cc]:
-      - error flag handling added
-      
-    * Magic.m:
-      - new version 0.62
-      - enhanced error handling
-      - sync support
-      
-    * Starcatalog.[h,cc], Camera.cc, Filter.[h,cc], Writer.[h,cc], 
-      MGImage.[h,cc]:
-      - changed type of image from char* to byte*
-      
-    * MGCoordinate.[h,cc]:
-      - changed typed from UInt_t to Int_t
-    
- 
- 2001/04/10 - Thomas Bretz:
-
-    * Starguide.[h,cc]:
-      - added limiting magnitude to menu
-
-    * catalog/StarCatalog.cc, catalog/SaoFile.cc:
-      - exit if file cannot be opened
-
-    * catalog/File.[h,cc]:
-      - added !-operator
-      - warning output in case of a file which could not be opened
-
-
- 2001/04/09 - Thomas Bretz:
-
-    * First checkin
Index: trunk/MagicSoft/Cosy/Changelog.02
===================================================================
--- trunk/MagicSoft/Cosy/Changelog.02	(revision 1954)
+++ trunk/MagicSoft/Cosy/Changelog.02	(revision 1954)
@@ -0,0 +1,831 @@
+
+ 2002/12/18 - Thomas Bretz (LaPalma):
+
+   * Makefile:
+     - added cosy.so
+   
+   * base/BaseLinkDef.h, base/Makefile:
+     - added MGList
+
+   * catalog/SlaStars.cc:
+     - changed temperature to 20degC
+     - changed wavelength to 0.55
+     
+   * main/MCosy.[h,cc]:
+     - added correct gear ratio for magic
+     - added support for mode in which not all clients are available
+     - added demo and shaftencoder mode
+     - added support for the bending correction
+     - removed support for 'the shortest distance' when positioning
+
+   * videodev/Makefile, videodev/VideodevLinkDef.:
+     - added Filter2 for Starguider
+
+   * base/MStarList.[h,cc], base/MStar.[h,cc], main/MBending.[h,cc]:
+     - added
+ 
+   * starg.cc:
+     - slight changes to get rid of the segfault when program ends
+
+   * base/MGList.h:
+     - changed from TOrdCollection to TList
+     - added some debug stuff
+
+   * candrv/network.cc:
+     - added 'Zombie' support
+   
+   * candrv/nodedrv.[h,cc]:
+     - added WaitForSDO return type
+     - added 'Zombie' support
+   
+   * devdrv/macs.[h,cc]:
+     - added 0x6501, econder resolution
+
+   * devdrv/shaftencoder.[h,cc]:
+     - added 'Zombie' support
+     - added data member for phys resolution
+ 
+   * gui/MGCosy.cc:
+     - added SetAspect-stuff
+ 
+   * gui/MGEmbeddedCanvas.cc:
+     - removed debugging output
+ 
+   * gui/MGImage.[h,cc]:
+     - changed update not to produce X11 Asyn Errors
+ 
+   * gui/MGSkyPosition.[h,cc], gui/MGVelocity.cc:
+     - removed some wrong floor-calls
+ 
+   * gui/MGStarguider.[h,cc]:
+     - added better support for camera display update
+   
+   * macros/rootlogon.C:
+     - added paths
+
+
+
+ 2002/11/12 - Thomas Bretz (LaPalma):
+
+    * aposs/Manual.m:
+      - fixed a bug which caused the drive to shake in case is was
+        switched on again after an emergency switch off
+
+
+ 
+ 2002/09/24 - Thomas Bretz (LaPalma):
+
+    * Starguider.[h,cc]:
+      - added some new menu options
+ 
+    * cosy.cc:
+      - added the mode switch
+      - tried to get rid of the seg-fault at the end of the program.
+
+    * base/BaseLinkDef.h:
+      - aded MStar
+
+    * base/Makefile:
+      - added MStar.cc
+      - added MStarList.cc
+
+    * base/coord.h:
+      - added <<-/>>-operators for the coordinates
+
+    * base/timer.h:
+      - added getters for d/m/y
+
+    * catalog/StarCatalog.[h,cc]:
+      - added some consts
+      - implemented MStarList-usage
+   
+    * devdrv/shaftencoder.cc:
+      - fixed segfaults triing to display values on non existing labels
+
+    * gui/MGCoordinate.[h,cc]:
+      - fixed a problem typing in negative coordinates<1
+
+    * MCosy.[h,c]:
+      - deleted
+
+    * gui/MGCosy.[h,cc]:
+      - added many new options
+      - added time display
+
+    * gui/MGStarguider.[h,cc]:
+      - added many new options
+
+    * main/MainLinkDef.h, main/Makefile:
+      - added MBending
+ 
+    * main/MBending.[h,cc]:
+      - added
+
+    * videodev/Camera.cc:
+      - added some debugging output
+
+    * videodev/Filter.cc:
+      - changed filter cut from 3.0 to 2.5
+
+
+
+ 2002/07/10 - Thomas Bretz:
+
+   * base/coord.h:
+     - added some member functions
+
+   * main/MBending.[h,cc]:
+     - added
+
+
+
+ 2002/06/03 - Thomas Bretz:
+
+   * gui/MGImage.cc:
+     - fixed a bug in the destructor while freeing fBuffer
+
+
+
+ 2002/04/12 - Thomas Bretz:
+
+   * Makefile.conf.linux-gnu:
+     - added -D_REENTRANT
+
+   * base/MThread.cc:
+     - added debug output
+
+   * candrv/canopen.cc:
+     - added debug output to destructor
+
+   * candrv/vmodican.cc:
+     - added debug output to failing read
+     - added some general debug output
+
+   * catalog/SlaStars.[h,cc]:
+     - added CalcRaDecFast
+     - added Calc*AzFast
+     - added some comments
+
+   * devdrv/macs.cc:
+     - added some HandleSDOOK output
+     - changed timer frequency to Guard Time third instead of half
+     - added some degub output
+     - changed timer to single shot timer
+     - switched off Mac timeout handling!!!
+
+   * gui/MGCosy.cc:
+     - added demo mode for 'Tag-der-Physik'
+
+   * gui/MGSkyPosition.cc:
+     - changed 'dots' to fast calculation functions
+
+   * gui/MGEmbeddedCanvas.cc:
+     - added some output
+     - fixed a bug with zero range
+
+   * main/MCosy.[h,cc]:
+     - added and changed some output
+     - changed LimitSpeed
+     - changed TalkThread
+       + only change offset when a new value for this axis is available
+       + reset the HasChanged flag before testing it
+
+
+
+ 2002/04/11 - Thomas Bretz:
+ 
+   * base/MThread.[h,cc]:
+     - added priority to constructor
+
+   * base/coord.h:
+     - added setter functions to RaDec
+
+   * base/msgqueue.[h,cc]:
+     - added some comments
+
+   * candrv/network.cc:
+     - HasError now checks all nodes
+
+   * candrv/nodedrv.[h,cc]:
+     - fixed some buggy output
+
+   * candrv/vmodican.cc:
+     - removed nonsens SetPriority (doesn't have any effect)
+
+   * gui/MGCosy.cc:
+     - replaced colors by the correct requested colors
+
+   * gui/MGSkyPosition.[h,cc]:
+     - added dots for the position in the past and future
+
+
+
+ 2002/04/04 - Thomas Bretz:
+ 
+   * cosy.cc:
+     - redirected logging output also to screen
+
+   * base/msgqueue.cc:
+     - qualified void-pointer in delete-statements
+
+   * candrv/canopen.cc, candrv/vmodican.cc, candrv/network.cc:
+     - added some more output
+
+   * candrv/vmodican.cc:
+     - added a more informative ouput in case of open fails and exit
+
+   * videodev/Camera.cc:
+     - qualified return value of mmap
+
+
+
+ 2001/12/21 - Thomas Bretz:
+ 
+   * candrv/*.cc:
+     - added comments
+
+   * candrv/*.[cc,h], devdrv/*.[cc,h]:
+     - replaced struct timeval by timeval_t
+
+   * .rootrc:
+     - added
+     
+   * Makefile:
+     - changed to create a shared object (for html docu)
+   
+   * macros/dohtml.C:
+     - added
+     
+   * macros/rootlogon.C:
+     - added
+   
+   * subdir lib:
+     - added
+
+
+
+ 2001/12/12 - Thomas Bretz:
+ 
+   * base/coord.h:
+     - added constants for unit transformations
+  
+   * base/msgqueue.h:
+     - replaced pthread.h by thread.h
+
+   * base/timer.h:
+     - removed unistd.h
+     - added forward declaration for timeval
+
+   * candrv/CandrvLinkDef.h:
+     - added VmodIcan
+     - added CanOpen
+     - added Network
+     - added NodeDrv
+     - added PendingSDO
+     - added PendingSDOList
+  
+   * candrv/nodedrv.h, candrv/sdolist.h, candrv/vmodican.h,
+     videodev/Camera.h, videodev/Writer.h:
+     - added ClassDef
+     - added some declarations for __CINT__ case
+
+   * base/MThread.h:
+     - added some declarations for __CINT__ case
+
+   * base/threads.h:
+     - added
+
+   * catalog/CatalogLinkDef.h:
+     - added Slalib+
+     - added SlaStars+
+     - added SlaPlanets+
+     - added SaoFile+
+     - added StarCatalog+
+
+   * catalog/SlaStars.h:
+     - added ClassDef
+     - included coord.h for coordation tranformations
+
+   * catalog/SlaStars.cc, catalog/Slalib.cc, gui/MGSkyPosition.cc:
+     - added ClassImp
+     - changed slalib macros to coord.h constants
+  
+   * catalog/StarCatalog.h:
+     - added ClassDef
+     - changed slalib macros to coord.h constants
+
+   * devdrv/DevdrvLinkDef.h:
+     - added Macs+;
+     - added ShaftEncoder+;
+
+   * gui/GuiIncl.h:
+     - added coord.h
+  
+   * gui/GuiLinkDef.h:
+     - added MGAccuracy+;
+     - added MGCoordinate+;
+     - added MGCoordinates+;
+     - added MGEmbeddedCanvas+;
+     - added MGImage+;
+     - added MGSkyPosition+;
+     - added MGVelocity+;
+     - added MGCosy+;
+     - added MGStarguider+;
+
+   * gui/MGCoordinate.[h,cc]:
+     - changed Flist to pointer type
+
+   * gui/MGCosy.cc:
+     - added ClassImp
+     - fixed a bug which causes 'Exit' not to work
+     - changed slalib macros to coord.h constants
+
+   * gui/MGCosy.h:
+     - added ClassDef
+  
+   * gui/MGEmbeddedCanvas.h:
+     - added ClassImp
+     - removed consts
+  
+   * gui/MGStarguider.[h,cc]:
+     - added ClassImp/Def
+     - change fList to pointer type
+     - change fRaDec to pinter type
+     - changed fSao to pointer type
+
+   * main/MCosy.[h,cc]:
+     - added ClassImp
+     - changed order
+     - added comments
+     - changed slalib macros to coord.h constants
+     - changed defines to enums
+  
+   * main/MainCint.h:
+     - removed
+  
+   * main/MainLinkDef.h:
+     - added MCosy
+
+   * devdrv/Makefile, candrv/Makefile, catalog/Makefile, gui/Makefile,
+     main/Makefile, videodev/Makefile:
+     - added CINTHEADERS
+
+   * candrv/canopen.cc, candrv/network.cc,candrv/nodedrv.cc, candrv/sdolist.cc
+     candrv/vmodican.cc, catalog/SaoFile.cc, catalog/SlaPlanets.cc,
+     catalog/StarCatalog.cc, devdrv/macs.cc, devdrv/shaftencoder.cc,
+     gui/MGAccuracy.cc, gui/MGCoordinate.cc, gui/MGCoordinates.cc,
+     gui/MGEmbeddedCanvas.cc, gui/MGImage.cc, gui/MGVelocity.cc,
+     videodev/Camera.cc, videodev/Filter.cc, videodev/Writer.cc:
+     - added ClassImp
+
+   * candrv/network.h, catalog/SaoFile.h, catalog/SlaPlanets.h,
+     catalog/Slalib.h, devdrv/macs.h, devdrv/shaftencoder.h,
+     gui/MGAccuracy.h, gui/MGCoordinate.h, gui/MGCoordinates.h,
+     gui/MGImage.h, gui/MGSkyPosition.h, gui/MGVelocity.h,
+     videodev/Filter.h:
+     - added ClassDef
+
+   * videodev/VideodevLinkDef.h:
+     - added Writer+;
+     - added Filter+;
+     - added Camera+;
+
+
+
+ 2001/09/10 - Thomas Bretz:
+ 
+   * base/timer.[h,cc]:
+     - added dome comments
+     
+   * candrv/canopen.[cc,h]:
+     - added boolean in SendSDO to suppress occurance in SDO list
+     
+   * candrv/nodedrv.[h,cc]:
+     - added Names for Node
+     - added boolean in SendSDO to suppress occurance in SDO list
+     
+   * devdrv/macs.[h,cc]:
+     - changed GetId() to GetNodeName() in logging output
+     - made timeout timer periodic again
+     - added timeout for Mac response (added SDOOK)
+     - added Name for Node
+     
+   * devdrv/shaftencoder.[h,cc]:
+     - changed GetId() to GetNodeName() in logging output
+     - added Name for Node
+     
+   * main/MCosy.[h,cc]:
+     - renamed fAlt1 to fZd1
+     - renamed fAlt2 to fZd2
+
+
+
+ 2001/09/07 - Thomas Bretz:
+ 
+   * aposs/Magic.m:
+     - implemented timeout if cosy crashes
+     
+   * candrv/nodedrv.[h,cc]:
+     - Changed ms in WaitForSDO to signed
+     
+   * devdrv/macs.[h,cc]:
+     - added 'case 0x4000'
+     - added SetTimeout
+     - added ReqTimeout
+     - added EnableTimeout
+     - added disabling Timeout to Init
+     - changed all upper case 'strings' to lower case
+     - added HandleTimer
+
+   * main/MCosy.cc:
+     - added enableing timeout for Mac1, Mac2
+
+
+     
+ 2001/09/06 - Thomas Bretz:
+
+   * MCosy.[cc,h]
+     - moved to main
+     - moved logging files to log dir
+     
+   * MStarguider.[h,cc]
+     - moved to main
+   
+   * Starguider.[h,cc]:
+     - renamed to MGStarguider.[h,cc]
+     - moved to gui dir
+     
+   * cosy.cc:
+     - moved logging file to log dir
+     
+   * starg.cc:
+     - removed InitGui stuff
+
+
+
+ 2001/08/30 - Thomas Bretz:
+ 
+   * MCosy.[h,cc]
+     - fixed some small bugs in tracking and positioning
+     - reorganized StopMovement and CheckForError
+     - added code into LimitSpeed
+     - added cosy.err
+     - rewrote MTTalk not to ba detached
+     - reorganized the code of MTTalk
+     - added StopMovement, WaitForEndMovement and IsPositioning
+     
+   * Starguider.cc:
+     - ready for new MGCoordinates-Constructor
+     
+   * base/coord.h:
+     - added pre-'-' operator
+     
+   * devdrv/shaftencoder.[h,cc]:
+     - introduced an HasChanged - flag
+     
+   * gui/MGAccuracy.cc:
+     - replaced floats by doubles in accuracy calculation,
+       gave wrong values
+       
+   * gui/MGCoordinate.[h,cc]:
+     - made a bit wider
+     - added support for hms-system
+     
+   * gui/MGCoordinates.[h,cc]:
+     - changed to use two fixed systems RaDec (hms), ZdAz(dms)
+     
+   * gui/MGCosy.cc:
+     - added new MGCoordinates
+     - moved two MGCoordinates to CreateTabs
+     - renamed CreateButton to CreateTabs
+     - made MGCoordinates a Client of the two Tabs
+     - transform Ra of RaDec MGCoordinates to Degrees.
+     - Introduced StartPos, StartTrack
+     
+   * gui/MGVelocity.cc:
+     - added displaying values of speed
+
+
+     
+ 2001/08/29 - Thomas Bretz:
+
+   * base/BaseLinkDef.h, base/BaseIncl.h, 
+     candrv/CandrvIncl.h, candrv/CandrvLinkDef.h,
+     catalog/CatalogLinkDef.h, catalog/CatalogIncl.h,
+     devdrv/DevdrvIncl.h, devdrv/DevdrvLinkDef.h,
+     gui/GuiLinkDef.h, gui/GuiIncl.h,
+     slalib/SlalibIncl.h, slalib/SlalibLinkDef.h,
+     videodev/VideodevLinkDef.h, videodev/VideodevIncl.h:
+     - added
+     
+   * Makefile.rules:
+     - added CINTHEADERS
+     
+   * cosy.cc:
+     - changed logging to MLog
+     
+   * base/Makefile:
+     - added MLog and MLogManip
+     
+   * base/log.h, candrv/canopen.[h,cc], candrv/network.[h,cc],
+     candrv/nodedrv.[h,cc], candrv/vmodican.[h,cc],
+     devdrv/macs.[h,cc]
+     - changed from ostream to MLog
+     
+   * devdrv/shaftencoder.[h,cc]
+     - changed from ostream to MLog
+     - changed buffering of values 
+     - removed old updating thread stuff
+     
+   * catalog/SlaStars.[h,cc]:
+     - added GetApproxVel
+     
+   * gui/MGAccuracy.cc:
+     - fixed the wrong deg2rad value
+     - added more accurate calculation of one dimensional
+       tracking error value
+     
+   * MGCosy.[h,cc]:
+     - added a TGListBox
+     - added some Labels to display offset as value
+     - removed offset display
+     - changed layout of dialog
+     - added layout manager
+     - added status frame
+     - added tabs
+     - added status display and update
+     
+   * gui/MGEmbeddedCanvas.cc:
+     - removed raised frame around embedded canvas
+     - enhanced size by 1
+     
+   * gui/MGSkyPosition.cc:
+     - a new position checks now for a new angle, too
+     - removed debugging output
+     
+   * slalib/Makefile:
+     - added altaz.c
+ 
+   * MCosy.[cc,h]:
+     - added fStatus support and update
+     - added some new function to outsource some code from 
+       positioning and tracking algorithms
+     - TerminateApp now sends WM_QUIT
+     - removed comments with old GUI thread
+     - added a missing bracket, which prevents us from stopping
+       a positioning command
+     - changed some output from cout to lout
+     - added empty prototype to Limit speed in tracking mode
+     - changed constructor to use of MLog
+
+   * base/MGList.h:
+     - added DBG_MGLIST for debugging
+     
+   * gui/MGCoordinate.cc:
+     - removed logging statement from destructor
+     
+   * gui/MGVelocity.cc:
+     - the factor 4 is now applied outside of the dialog.
+
+
+
+ 2001/08/23 - Thomas Bretz:
+
+   * gui/MGEmbeddedCanvas.[h,cc]:
+     - added
+     
+   * gui/MGVelocity.[h,cc]:
+     - added
+     
+   * MCosy.[h,cc]:
+     - added GetRePosPdo
+     - changed fOffset to an offset between the se and re system
+     - changed old fOffset to fTrackingError which gives you a good
+       estimate what the tracking error really is
+     - changed the weighting of fOffset from 0.1 to 0.3
+     - reordered some statements for a better overview
+     - changed update of GUI from thread to a timer (s.HandleTimer)
+
+   * Makefile:
+     - added libpthread.a
+     - reordered libraries
+     
+   * gui/MGAccuracy.[h,cc]:
+     - changed the layout
+     - make use of TGaxis
+     - added the numbers as text into canvas
+     - added a title
+     - derived from MEmbeddedCanvas
+     
+   * gui/MGCosy.[h,cc]:
+     - changed layout
+     - added canvas for velocity
+     - added canvas for offset
+     
+   * gui/MGSkyPosition.[h,cc]:
+     - added position as text
+     - added axis labels
+     - derived from MEmbeddedCanvas
+     - reorganized parts of the existing code
+
+
+
+ 2001/08/17 - Thomas Bretz:
+
+    * Added:
+      - catalog/SlaStars.cc
+      - catalog/SlaStars.h
+      - catalog/SlaPlanets.cc
+      - catalog/SlaPlanets.h
+      - gui/MGAccuracy.cc
+      - gui/MGAccuracy.h
+
+    * MCosy.[h,cc]:
+      - removed dependance from MGSkyPosition
+      - changed Timer function names
+      - moved timer calls into Slalib calls
+      - changed Slalib to SlaStars
+      - added fAccuracy
+      - added accuracy display to MTGui
+    
+    * Makefile:  
+      - changed order of libraries
+    
+    * Starguider.cc:
+      - changed Timer function names
+    
+    * base/timer.[h,cc]
+      - changed GetTime -> Now
+      - changed GetMjd  -> CalcMjd
+    
+    * catalog/Makefile:
+      - added new file SlaStars.cc
+      - added new file SlaPlanets.cc
+    
+    * catalog/Slalib.[h,cc]:
+      - moved star dependent functions to derived class SlaStars
+      - changed name of Set to SetMjd
+      - made SetMjd virtual
+      - derives from Timer now
+      - added conversion function for XYZ->ZdAz
+    
+    * catalog/StarCatalog.cc:
+      - moved timer calls into Slalib calls
+      - changed Slalib to SlaStars
+
+    * devdrv/macs.cc:
+      - changed names of timer function calls
+
+    * devdrv/shaftencoder.cc:
+      - changed names of timer function calls
+      - changed some cout's to lout's
+    
+    * gui/MGCosy.[h,cc]:
+      - added fAccuracy
+      - moved timer calls into Slalib calls
+      - changed Slalib to SlaStars
+    
+    * gui/MGSkyPosition.[h,cc]:
+      - added display of planet positions
+
+    * slalib/Makefile:
+      - added missing files
+
+
+
+ 2001/08/15 - Thomas Bretz:
+
+    * Added:
+      - Makefile.conf.general
+      - gui/Makefile
+      - base/Makefile
+      - candrv/Makefile
+      - catalog/Makefile
+      - slalib/Makefile
+      - videodev/Makefile
+      - devdrv/Makefile
+      - base/MThread.[h,cc]
+      - base/MTimeout.[h, cc]
+      - mgui/MGSkyPosition.[h, cc]
+      - catalog/Slalib.[h,cc]
+     
+    * .cosyrc:
+      - changed names
+      - added HomeTime
+   
+    * MCosy.[h,cc]:
+      - added home time
+      - added MTGui, MTTalk
+      - added reading environment
+   
+    * Makefile, Makefile.conf.linux-gnu, Makefile.rules
+      - changed to Mars style
+   
+    * Starguider.cc:
+      - changed include timer.g to base/timer.h
+   
+    * Starguider.[h,cc]:
+      - renamed Execute to ProcessFrame
+ 
+    * cosy.cc:
+      - removed unnecessary includes
+   
+    * base/MGList.h:
+      - added debug output
+   
+    * base/msgqueue.cc:
+      - added comments
+   
+    * base/msgqueue.h:
+      - made Break const
+   
+    * candrv/canopen.[h,cc]:
+      - made CobId const
+   
+    * candrv/network.[h,cc]:
+      - fixed typo
+      - StopReceiver -> VmodIcan::Stop
+      - made HasError const
+   
+    * candrv/nodedrv.[h,cc]:
+      - added timeout to WaitForSdo
+   
+    * candrv/sdolist.[h,cc]:
+      - made IsPending const
+     
+    * candrv/vmodican.[h,cc]:
+      - changed ReceiveThread to new stylish MThread
+   
+    * devdrv/macs.[h,cc]:
+      - changed SetHome to use a maximum positioning time
+      - added comments
+      - replaces SetSyncMode by StartPosSync and StartVelSync
+
+    * devdrv/shaftencoder.[h,cc]:
+      - removed gui thread (the update is done by MTGui now)
+   
+    * gui/MGCosy.[h,cc]:
+      - some small changed
+      - removed fList->Delete()
+      - added MSkyPosition-Object
+      - gSystem->ExitLoop() replaced by gSystem->Terminate(0)
+   
+    * videodev/Camera.[h,cc]:
+      - renamed Execute to ProcessFrame
+
+
+   
+ 2001/05/25 - Thomas Bretz:
+ 
+    * .cosyrc:
+      - added
+      
+    * MCosy.[h,cc]:
+      - changed the error handling os SetPosition
+      - added resources from environment-file '.cosyrc'
+      - added WM_WAIT
+      - added support for Mac3 (Synchronisation)
+      - added software endswitch
+      
+    * macs.[h,cc]:
+      - emhanced error handling
+      - added sync support
+      
+    * timer.h:
+      - H(), M(), S() added
+      
+    * network.[h,cc]:
+      - HasError() added
+
+    * nodedrv.[h,cc]:
+      - error flag handling added
+      
+    * Magic.m:
+      - new version 0.62
+      - enhanced error handling
+      - sync support
+      
+    * Starcatalog.[h,cc], Camera.cc, Filter.[h,cc], Writer.[h,cc], 
+      MGImage.[h,cc]:
+      - changed type of image from char* to byte*
+      
+    * MGCoordinate.[h,cc]:
+      - changed typed from UInt_t to Int_t
+    
+ 
+ 2001/04/10 - Thomas Bretz:
+
+    * Starguide.[h,cc]:
+      - added limiting magnitude to menu
+
+    * catalog/StarCatalog.cc, catalog/SaoFile.cc:
+      - exit if file cannot be opened
+
+    * catalog/File.[h,cc]:
+      - added !-operator
+      - warning output in case of a file which could not be opened
+
+
+ 2001/04/09 - Thomas Bretz:
+
+    * First checkin
Index: trunk/MagicSoft/Cosy/main/MStarguider.cc
===================================================================
--- trunk/MagicSoft/Cosy/main/MStarguider.cc	(revision 1953)
+++ 	(revision )
@@ -1,95 +1,0 @@
-#include "MStarguider.h"
-/*
-#include <iostream.h>
-#include <signal.h>
-
-#include <TROOT.h>
-#include <TSystem.h>
-#include <TCanvas.h>
-#include <TApplication.h>
-
-#include "timer.h"
-#include "Writer.h"
-#include "grab-v4l.h"
-#include "StarDisplay.h"
-#include "CameraDisplay.h"
-*/
-/* ---------------------------------------------------------------------- */
-/*
-void MStarguider::ReadoutLoop()
-{
-    //disp->Update();
-
-    //---    WriterPng png(768, 576);
-    //---    Writer task1(&png, 25*5/1);  // one png per five seconds
-
-    // ---
-    fCcd = new Camera;
-    CameraDisplay *task=new CameraDisplay(gClient->GetRoot());
-
-    fCcd->SetIntegrationNum(1);
-//    fCcd->Loop(task, 25*60*15); // 15min
-
-    //
-    // Stop Application Loop
-    //
-
-    //
-    // FIXME! stupid workaround for tasks without a gui!
-    //
-    //---
-    // TCanvas *c = new TCanvas("Dummy", "Dummy");
-
-//    gStopLoop= 1;
-//    while (fCcd->IsRunning())
-//        sleep(1);
-
-    delete fCcd;
-    //delete task;
-
-    gSystem->ExitLoop();
-    gSystem->DispatchOneEvent(kTRUE);
-    // ReturnFromRun(); // SetReturnFromRun();
-
-
-    cout << "Event Loop Done." << endl;
-}
-
-void *MStarguider::MapReadoutLoop(void *arg)
-{
-    MStarguider *starg = (MStarguider*)arg;
-
-    starg->ReadoutLoop();
-
-    return NULL;
-}
-
-void MStarguider::StartReadoutLoop()
-{
-    pthread_t thread;
-    if (pthread_create(&thread, NULL, MapReadoutLoop, this))
-    {
-        cout << "Error starting main thread." << endl;
-        exit(0);
-    }
-    pthread_detach(thread);
-}
-
-MStarguider::MStarguider(int *argc, char **argv, void *options=0,
-                         int numOptions=0)
-: TApplication("Starguider", argc, argv, options, numOptions), fCcd(NULL)
-{
-
-    signal(SIGINT, SignalRcvd);
-
-    //---
-
-    StartReadoutLoop();
-}
-
-MStarguider::~MStarguider()
-{
-    //---
-}
-
-*/
Index: trunk/MagicSoft/Cosy/main/MStarguider.h
===================================================================
--- trunk/MagicSoft/Cosy/main/MStarguider.h	(revision 1953)
+++ 	(revision )
@@ -1,24 +1,0 @@
-#ifndef MSTARGUIDER_H
-#define MSTARGUIDER_H
-
-#include "Camera.h"
-#include "MGStarguider.h"
-
-class MStarguider : public Camera
-{
-private:
-    MGStarguider *fDisplay;
-
-public:
-    MStarguider()
-    {
-        fDisplay = new MGStarguider;
-    }
-
-    ~MStarguider()
-    {
-        delete fDisplay;
-    }
-};
-
-#endif
Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 1953)
+++ trunk/MagicSoft/Mars/Changelog	(revision 1954)
@@ -65,4 +65,10 @@
      - changed the order of the arguments in the constructor
        (name, title to the end)
+
+   * manalysis/MMultiDimDistCalc.cc:
+     - added two const qualifiers
+     
+   * mtemp/MObservatory.cc:
+     - changed Magic1 coordinates to CT1 GPS.
 
 
Index: trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc	(revision 1953)
+++ trunk/MagicSoft/Mars/manalysis/MMultiDimDistCalc.cc	(revision 1954)
@@ -200,6 +200,6 @@
     }
 
-    Double_t dg = fMGammas->CalcDist(event, numg);
-    Double_t dh = fMHadrons->CalcDist(event, numh);
+    const Double_t dg = fMGammas->CalcDist(event, numg);
+    const Double_t dh = fMHadrons->CalcDist(event, numh);
 
     if (dg<0 || dh<0)
Index: trunk/MagicSoft/Mars/mtemp/MObservatory.cc
===================================================================
--- trunk/MagicSoft/Mars/mtemp/MObservatory.cc	(revision 1953)
+++ trunk/MagicSoft/Mars/mtemp/MObservatory.cc	(revision 1954)
@@ -61,7 +61,9 @@
     {
     case kMagic1:
-        fLatitude  = Dms2Rad( 28, 45, 30.0);
-        fLongitude = Dms2Rad(-17, 52, 48.0);
-        fHeight    = 2326; // m
+        // Values taken from the GPS Receiver positined in
+        // the CT1 control room
+        fLatitude  = Dms2Rad( 28, 45, 42.564);
+        fLongitude = Dms2Rad(-17, 53, 27.426);
+        fHeight    = 2198.7; // m
         fObservatoryName = "Observatorio del Roque de los Muchachos (Magic1)";
         return;
