source: trunk/MagicSoft/Cosy/Changelog@ 8833

Last change on this file since 8833 was 8833, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 21.1 KB
Line 
1 -*-*- END -*-*-
2
3 2008/01/24 Thomas Bretz
4
5 * telesto.cc, tpoint/Makefile, tpoint/TPointLinkDef.h, tpoint/skull.xpm,
6 tpoint/TPointIncl.cc, TPointStar.[h,cc], TPointGui.[h,cc]:
7 - added
8
9 * candrv/nodedrv.cc:
10 - changed NodeGuard to new Thread model
11
12 * gui/MGCosy.cc:
13 - replaced usage of old MG*Menu classes by the corresponding basic
14 root classes
15 - use root's cleanup facility indstead of MGList where possible
16 - SetOwner of fList to ensure a real cleanup
17 - Prepare for changes in the coordinate classes
18
19 * main/MSlewing.cc, main/MTracking.cc:
20 - added modifiers to log-stream
21 - prepared for the changes in the coordinate classes
22
23 * main/MStarguider.cc:
24 - replaced MG*Menu classes by the corresponding root classes
25 - use root's cleanup facility
26 - SetOwner of the fList
27
28 * base/coord.h:
29 - removed coordinate classes, replaced by new classes from MPointing.h
30 (they are basically identical by now in libmars.so and derived from TVector2)
31
32 * base/msgqueue.[h,cc]:
33 - simplified the scheme of the message queue using a single thread
34 - now the default is that new messages override pending ones
35 - the development is based on debugging with valgrind
36 - the aim is more stability due to simplification
37 - uses new threading scheme
38
39 * macros/rootlogon.C:
40 - improved
41
42 * Makefile:
43 - added telesto
44 - added inlcude directories
45 - renamed cosy.so to libcosy.so
46
47 * base/MThread.[h,cc]:
48 - implemented new Threading classe(s) -- still to be revised!
49 (should be made part of Mars finally!)
50
51 * candrv/vmodican.[h,cc]:
52 - adapted to new threading scheme
53 - replaced lout by gLog
54 - removed cast from third argument in ioctl (complains from a
55 64bit debugger)
56 - removed HandleMessage (now it is one level up -- that's not logical
57 but just simple)
58 - the same applies to SendCanFrame and MsgDescr
59 - thread is not detached anymore
60
61 * videodev/Camera.[h,cc]:
62 - for the moment the Camera class is removed from the root dictionary
63 - changed to new threading class
64 - thread doesn't run detached anymore
65 - the Camera control is now based on the new MVideo-class
66 - a lot of code has been moved to the new MVideo class
67 - we also support (as a hack for tests) color cameras with different
68 field-of-views
69 - simplified and improved the logic of the loop based on valgrinds output
70
71 * videodev/VideodevLinkDef.h:
72 - removed Camkera from dictionary
73
74 * main/MCosy.[h,cc]:
75 - replaced kDeg2Rad and kRad2Deg by TMath
76 - replaced lout by gLog
77 - made a few changes for the new coordinate classes
78 - added cancel points to thread where possible
79 - changed to new threading classes
80 - thread doesn't run detached anymore
81
82
83
84 2008/01/19 Thomas Bretz
85
86 * cosy.cc:
87 - gave cosy a typical Mars-like implementation
88 - added thread and memory debugging
89 - changed lout to gLog
90 - fixed the problem with TApplication in the gui classes, thus it could
91 now be instantiated as object
92
93 * devdrv/shaftencoder.cc:
94 - mainly cosmetics
95 - added some initializations suggested by valgrind
96
97 * gui/MGCosy.h:
98 - removed obsolete forward declaration of TGMenuBar
99
100 * gui/MGEmbeddedCanvas.[h,cc]:
101 - some cosmetics
102 - correctly replaced ForEach by R__FOR_EACH
103
104 * main/MStarguider.[h,cc]:
105 - use root's own cleanup facility where possible
106 - set the owenership to fList to ensure deletion
107 - use a simple way to cascade the menues
108 - replace MG*Menu by TG*Menu
109 - improved the switching of the starguider channels. Especially
110 no recreation of the object is done if not necessary
111
112
113
114 2008/01/18 Thomas Bretz
115
116 * base/Makefile:
117 - cosmetics
118
119 * catalog/SlaStars.cc, catalog/Slalib.cc, catalog/StarCatalog.h,
120 gui/MGSkyPosition.cc:
121 - replaced kRad2Deg by TMath::RadToDeg()
122 - replaced kDeg2Rad by TMath::DegToRad()
123 - replaced kPiDiv2 by TMath::Pi()/2
124
125 * main/MCaos.cc:
126 - replaced cout by gLog and use color coding
127 - replaced coord.h by MPointing.h
128
129
130
131 2008/01/16 Thomas Bretz
132
133 * gui/MGMenu.[h,cc]:
134 - removed
135
136 * Makefile, Makefile.conf.general, Makefile.conf.linux,
137 Makefile.rules, caos/Makefile, catalog/Makefile,
138 devdrv/Makefile, gui/Makefile, main/Makefile,
139 slalib/Makefile, tcpip/Makefile, videodev/Makefile:
140 - changed all Makefiles to the Mars Makefile style for better
141 performance, maintanance and reliability
142 - some updates for future code
143
144 * videodev/CaosFilter.h, videodev/FilterLed.h, videodev/PixClient.h,
145 videodev/PixGetter.h, videodev/Writer.h, candrv/sdolist.h:
146 - added virtual destructor as suggested by gcc 4
147
148 * devdrv/macs.[h,cc], devdrv/shaftencoder.[h,cc], candrv/canopen.[h,cc],
149 candrv/network.[h,cc], candrv/nodedrv.[h,cc]:
150 - replaced timeval_t* by a const reference in all arguments of
151 member functions
152
153 * gui/MGEmbeddedCanvas.cc:
154 - replaced C-style includes (iostream.h) with C++ style (iostream)
155
156 * videodev/FilterLed.cc:
157 - initialized fImg as suggested by valgrind
158
159 * candrv/canopen.cc, candrv/network.cc, main/MTracking.cc,
160 main/MPpointing.cc, tcpip/MTcpIpIO.cc:
161 - replaced the lout-logging by gLog
162
163 * candrv/canopen.[h,cc]:
164 - derive from a generalized base class (Interface) now instead of
165 the specialized VmodIcan interface class
166 - added member function to start and stop the underlaying interface
167 - moved the RawCan handling function from VModIcan here
168 (HandleMessage)
169
170 * candrv/network.[h,cc]:
171 - start interface via CanOpen::Start and stop it via CanOpen::Stop
172 - removed obsolete arguments from constructor
173 - initialize fNodes and fNodeInitialized as suggested by valgrind
174
175 * gui/MGCoordinate.cc:
176 - SetOwner of fList to make sure that all gui object are properly deleted
177 - initialize the "label"-pointer as suggested by valgrind
178
179 * gui/MGCosy.h:
180 - removed obsolete forward class declaration of TGMenuBar
181
182 * gui/MGCoordinate.cc, gui/MGPngReader.cc
183 - SetOwner of fList to make sure that all gui object are properly deleted
184
185 * main/MTracking.[h,cc]:
186 - use new threading model (uses RunThread and CancelThread instead of
187 Start Stop)
188 - changed return code of Thread from void* to Int_t#
189 - replaced chacking the HasStopFlag by TThread::CancelPoint calls
190 - renamed MPointing to MSlewing to get rid of a namespace conflic
191 with Mars' MPointing
192
193 * main/MainLinkDef.h:
194 - added the missing + for MCosy and MTracking
195 - replaced MPointing by MSlewing
196
197 * main/MPointing.[h,cc]:
198 - renamed class to MSlewing
199 - removed
200
201 * main/MSlewing.[h,cc]:
202 - added
203
204 * tcpip/MTcpIpIO.[h,cc]:
205 - splitted MTcpIpIO into two base classes, one for input, one for output
206 - made the ports an argument
207 - derived from new threading class
208 - also added a static function to send a frame over a exclusively
209 opened port
210 - replaced old HasStopFlag by new IsThreadCanceled (this is used
211 instead of a CancelPoint to ensure correct cleanup)
212
213 * tcpip/MDriveCom.h:
214 - updated constructor
215
216
217
218 2008/01/14 Thomas Bretz
219
220 * tpoint/gui.C:
221 - added individual reset buttons
222
223
224
225 2008/01/09 Thomas Bretz
226
227 * tpoint/gui.C:
228 - some small improvements
229
230
231
232 2007/06/06 Thomas Bretz
233
234 * tpoint/*:
235 - added new tpoint files
236 - added starguider tpoint files
237 - cleaned up the tpoints from errorneous detections
238
239 * tpoint/gui.C:
240 - added option to read collections
241 - added new button to reread tpoints
242
243
244
245 2007/06/06 Markus Meyer
246
247 * tpoint/:
248 - added tpoint files from Jan. 2007 to June 2007
249
250
251
252 2007/03/14 Thomas Bretz
253
254 * bend.cc, cosy.cc, starg.cc, testse.cc, base/MStarList.cc,
255 base/MThread.cc, base/log.h, base/msgqueue.cc, candrv/nodedrv.cc,
256 candrv/sdolist.cc, catalog/SlaPlanets.cc, catalog/Slalib.cc,
257 catalog/StarCatalog.cc, gui/MGAccuracy.cc, gui/MGCoordinate.cc,
258 gui/MGCoordinates.cc, gui/MGCosy.cc, gui/MGNumStars.cc,
259 gui/MGSkyPosition.cc, main/MBending.cc, main/MStargHistograms.cc,
260 base/coord.h, main/MCaos.cc, main/MCosy.cc, main/MPointing.cc,
261 main/MStarguider.cc, main/MTracking.cc, videodev/FilterLed.cc,
262 videodev/PixClient.cc, videodev/PngReader.cc, videodev/Writer.cc:
263 - replaced obsolete .h by C++ headers
264 - added namespace std
265
266 * base/MStarList.h:
267 - fixed warnings about overwriting of Delete
268
269 * base/MStopwatch.h, gui/MGCoordinate.h, gui/MGCoordinates.h,
270 main/MStarguider.h:
271 - fixed warning about overwriting of Print()
272
273 * base/MTimeout.cc, candrv/nodedrv.cc, devdrv/macs.cc,
274 tcpip/MCeCoCom.cc:
275 - fixed default argument in declaration
276
277 * catalog/StarCatalog.cc, gui/MGAccuracy.cc, main/MCaos.[h,cc],
278 main/MCosy.cc, main/MPointing.cc, main/MStarguider.cc,
279 main/MTracking.cc:
280 - fixed a type problem (int instead of double)
281
282 * gui/MGCoordinate.cc, gui/MGCosy.cc:
283 - fixed a warning about double declaration
284
285 * tcpip/MCeCoCom.h:
286 - renamed Send to SendRep
287
288 * tcpip/MDriveCom.cc:
289 - replaced Send by SendRep
290
291 * tcpip/MTcpIpIO.cc:
292 - added missing return
293
294
295
296 2006/11/01 Thomas Bretz
297
298 * tpoint/gui.C:
299 - added the horizon
300 - got rid of a warning about a TGraph with 0 points in case
301 the tpoint-file didn't contain magnitudes.
302
303
304
305 2006/07/18 Thomas Bretz
306
307 * base/MStar.h:
308 - fixed a really stupid bug in the constructor, which automatically
309 converted the magnitudes into ints.
310
311
312
313 2006/07/16 Thomas Bretz
314
315 * leds.txt:
316 - new values
317
318 * gui/MGCoordinate.cc:
319 - increased size of output text to display sign
320
321 * gui/MGCosy.cc:
322 - named MACS correctly MACS
323
324 * gui/MGNumStars.cc:
325 - changed color for correlated stars from magenta to cyan
326
327 * main/MStarguider.cc:
328 - changed starguider angle to -0.2
329 - changed pixsize to 48.9
330 - update num stars only if starguider is switched on
331 - removed bug which caused the rotation angle in fact to
332 be always 0
333 - reimplemented the algorithm which only takes the n-th brightest
334 stars from the catalog if n is the number of detected stars
335 (otherwise the catalog might be so crowded with stars that
336 one spot is correlated with many catalog stars)
337 - decreased the search region for the LEDs
338 - some things are not done anymore if not necesarry
339
340 * videodev/FilterLed.[h,cc]:
341 - cleaned up
342 - changed the interface of the ClusterFinder slightly to
343 allow it beeing used for the TPoint spot of the star
344
345
346
347 2006/07/16 Daniela Dorner
348
349 * main/MStarguider.[h,cc]:
350 - improvement in showing/hiding of parts of the display in the starguider
351 window
352
353
354
355 * main/MStarguider.cc:
356 - fixed bug in setting menu entry for limiting magnitude
357
358
359
360 2006/07/14 Thomas Bretz (La Palma)
361
362 * stargleds.txt:
363 - changed positions slightly
364
365 * gui/GuiLinkDef.h, gui/Makefile:
366 - added MGNumStars
367
368 * gui/MGStars.[h,cc]:
369 - addde
370
371 * gui/MGAccuracy.[h,cc], gui/MGStarg.[h,cc]:
372 - unified
373 - slight changes to layout
374
375 * gui/MGCoordinate.[h,cc], MGCoordinated.[h,cc]:
376 - added a new mode which allows to suppress the title
377
378 * gui/MGCosy.[h,cc]:
379 - added new status box (armed) currently switched on by default
380 - adapted to changes in MGAccuracy
381 - disallow changing the size of the window
382
383 * main/MCaos.cc:
384 - removed an obsolete Print()
385
386 * main/MCosy.cc:
387 - fixed the name of the log-files (2006 instead of 06)
388
389 * main/MStarguider.[h,cc]:
390 - implemented new socket to send triggers to Amc (port 7307)
391 - changed standard limiting magnitude from 7.0 to 9.0
392 - changed layout of display to implement new canvas
393 displaying the number of detected and correlated stars
394 - adapted to changes in MGStarg
395 - added box to change cleaning level of starguider window
396 - set default rotation angle to -0.4deg
397 - disallow changing of window size
398 - CalcTrackingError: check first the number of detected spots
399 and afterwards the number of found catalog stars
400 - CalcTrackingError: just try to correlate all spots with all stars
401 - decreased box size of LED box in starguider mode
402 - replaced circles around starguider pointing position by
403 camara size hexagons
404 - do not show the starguider pointing position if less than three
405 stars could be correlated
406
407 * tcpip/MTcpIpIO.cc:
408 - fixed a comparison between "signed and unsigned"
409
410 * videodev/FilterLed.[h,cc]:
411 - implemented DrawHexagon based on MGMap::DrawHexagon
412 - renamed *Circle to *Box
413 - replaced old algorithm to find stars in starguider mode (and
414 LEDs) by a new ClusterFinder class
415 - needs more maintanance!
416
417
418
419 2006/07/11 Thomas Bretz (La Palma)
420
421 * Makefile:
422 - changed to support linking with the libmars.so instead
423 of compiling a lot of stuff itself
424
425 * Makefile.conf.general:
426 - added -DMARSVER
427
428 * base/BaseLinkDef.h:
429 - removed the now obsolete pragma
430
431 * base/Makefile
432 - removed the now obsolete files
433
434 * candrv/Makefile, caos/Makefile, catalog/Makefile,
435 videodev/Makefile, devdrv/Makefile, gui/Makefile,
436 main/Makefile, tcpip/Makefile:
437 - added the new mars include directory
438
439 * caos/Leds.h, caos/Rings.h:
440 - added an overwrite for Print to make the compiler happy
441
442 * catalog/StarCatalog.cc:
443 - small improvements to determination of image border
444 by using min- and max-functions
445
446 * gui/MGCoordinate.cc:
447 - small improvement to layout
448
449 * gui/MGImage.cc:
450 - fixed 16bit-color mode. The encoding was just wrong
451
452 * videodev/Camera.cc:
453 - unlock the tread after the broadcast. The reason why it
454 is neccessary in root 4.04/02g to make cosy work is
455 unknown. Anyhow it makes switching the cameras more robust
456
457 * cosy.cc:
458 - updated writing log-files
459 - implemented sanity check for batch mode
460
461 * gui/MGAccuracy.cc, gui/MGStarg.cc:
462 - use GetabsDev from MAstro
463 - scale azimuth deviation to real distance on the sky
464
465 * main/MCosy.[h,cc]:
466 - updated writing log-files
467 - do no perfect position in case of move'n'track
468 - implemented WM_PREPS for predefined positions
469 - unified WM_TRACK and WM_GRB
470 - updated GetFileName
471
472 * main/MStarguider.cc:
473 - undef EXPERT
474 - some layout changes
475 - set rotation angle of starguider camera to -0.4deg
476 - unified FindStar and FindStarCircle
477 - updated writing log-files
478 - to calc skycenter the X-offset must be subtracted
479
480 * tcpip/MDriveCom.[h,cc]:
481 - implemented CommandPREPS
482 - implemented CommandARM
483
484 * videodev/FilterLed.[h,cc]:
485 - unified FindStar and FindStarCircle
486 - fixed algorithm FindStarCircle (it was not working for
487 bright stars and didn't take care of the edge of the
488 image!)
489 - fixed a long outstanding bug which accessed some memory
490 outside the image due to a wrong logical condition
491
492
493
494 2006/07/11 Daniela Dorner
495
496 * main/MStarguider.[h,cc]:
497 - implemented function to disable and uncheck an entry in the menu
498
499 * main/MStarguider.cc:
500 - fixed bugs in (un)checking and en/disabeling items
501 - removed not needed if-clauses
502 - rearranged menu
503
504
505
506 2006/07/10 Thomas Bretz (La Palma)
507
508 * slalib/dat.c:
509 - added leap second from 1st January 2006
510
511
512
513 2006/06/29 Thomas Bretz
514
515 * main/MStarguider.cc:
516 - fixed a bug which gave a starguider mispointing which was wrong
517 by the pointing position.
518 - fixed also the position of the displayed rings wrt to the catalog
519 sky
520
521 * catalog/StarCatalog.cc:
522 - replaced some Float_t by Int_t
523
524
525
526 2006/06/28 Thomas Bretz
527
528 * main/MStargHistograms.[h,cc]:
529 - removed Center in units of Zd, Az
530
531 * main/MStarguider.cc:
532 - removed obsolete and dangerous sgcenterzdaz
533 - do not display the sky-centered rings if sky-center is invalid
534 (LEDs not detected)
535 - rais error in this case and send error state to CC
536 - added lower brighness limit of 30
537 - do not write pointingpos.txt and tracking_error.txt anymore
538
539 * caos/Ring.h:
540 - added Setter SetXY
541
542 * catalog/StarCatalog.cc:
543 - fixed that when checking for the region in which stars will
544 be searched only the y- but not the x-offset has been taken into
545 account
546 - added a small region around the region of interest because
547 the catalog position of visible stars might be out of the
548 search region
549 - commented out an obsolete function
550
551
552
553 2006/05/10 Thomas Bretz
554
555 * main/MStarguider.cc:
556 - fixed an error returning the correct value in CalcTrackingError
557 - added new value to Starguider report
558
559 * tcpip/MDriveCom.[h,cc]:
560 - added new value to starguider report
561
562
563
564 2006/03/23 - Daniela Dorner, Thomas Bretz
565
566 * main/MStarguider.[h,cc]:
567 - changed starguider algorithm
568
569
570
571 2006/03/19 - Daniela Dorner
572
573 * main/MStargHistograms.cc:
574 - changed name of tree from CaOs to Starg
575
576 * leds.txt, stargleds.txt:
577 - added new leds
578
579 * main/MCosy.cc:
580 - changed name of tpoint-files, which are written from Cosy, from
581 tpoint*.txt to old-tpoint*.txt
582
583 * main/MStarguider.[h,cc]:
584 - added StarguiderTpoint Button
585 - included 2 new variables to allow for the implementation of
586 StarguiderTpoints
587 - added writing of StarguiderTpoints to the function CalcTrackingError
588 - StarguiderTpoints are written to tpoint/starg_*.txt
589 - Tpoints are wriiten to tpoint/tpoint_*.txt
590 - added pulldown Mode to Menu
591 - cleaned Menu (removed not needed items, rearanged place of items
592 - removed expertmode
593 - implemented Tpoint- and Starguider-Mode (switches all needed item)
594 put some code into functions therefor
595 - implemented releasing of button, if no tpoint can be taken
596 - fixed small bugs in (un)checking items
597 - removed starguider analyis (writing root-files) from starguider mode to
598 stabilize the code
599 - added 'fGetter->ExitLoop()' before each 'delete fGetter'
600 - added SetDirectory(0) for histogram in starguider
601
602
603
604 2006/03/11 - Daniela Dorner
605
606 * tpoint/bending051124.txt:
607 - added
608
609
610
611 2005/08/29 - Daniela Dorner
612
613 * main/MStarguider.cc, tcpip/MDriveCom.[h,cc]:
614 - added to variables to the Starguider report
615
616
617
618 2005/08/22 - Thomas Bretz
619
620 * candrv/nodedrv.cc, main/MTracking.cc:
621 - fixed usage of MTime (MTime(-1) instead of MTime())
622
623
624
625 2005/08/22 - Thomas Bretz
626
627 * caos/Ring.[h,cc]:
628 - added a sanity check for the case a led entry == NULL
629
630 * caos/Rings.[h,cc]:
631 - code cleanup
632 - added a sanity check to CalcRings
633
634 * devdrv/shaftencoder.h:
635 - added new member function GetPosDirCorrected
636 - added new member function GetOffsetDirCorrected
637
638 * main/MStarguider.cc:
639 - set number of minimum required LEDs for the ring calculation
640 to 3. With two LEDs you can NEVER calculate a ring!
641 - added another sanity check in FindStars
642
643 * main/MTracking.cc:
644 - replaced ?:-operators by new functions Get*DirCorrected
645 - made sure that if both directions have changed the reset
646 really causes the correct values to be used immediatly!
647 - added some code for future use
648
649
650
651 2005/07/28 - Florian Goebel
652
653 * videodev/FilterLed.[cc,h]
654 - add GetMeanPositionCircle and FindStarCircle
655
656 * devdrv/shaftencoder.[cc,h]
657 - add: fDirHasChanged, fDirChangedPos, fDirChangedOffset,
658 fDirection, fHysteresisPos, fHysteresisNeg
659
660 * main/MCosy.cc
661 - set faster acceleration and Velocity parameters in TrackPositionGRB
662
663 * main/MPointing.cc
664 - correct bug which always set speed to LO-SPEED
665
666 * main/MStarguider.[cc,h]
667 - add new Popup "Operation" (functionality is not ready yet)
668 - add new procedure: FindRoqueLamp
669 - in MStarguider::FindStar now use Leds::FindStarCircle
670 (instead of Leds::FindStar)
671
672 * main/MTracking.cc
673 - calculate DirHasChanged etc.
674
675
676
677 2005/04/11 - Thomas Bretz
678
679 * main/MTracking.cc:
680 - allow to send velocity and request position twice
681 - enhanced some debugging output
682
683 * candrv/network.[h,cc]:
684 - implemented PrintError
685
686 * candrv/nodedrv.[h,cc]:
687 - implemented new argument (zombie) to WaitForSdo which allows
688 to mark a missing CANbus message as non-critical
689
690
691
692 2005/03/21 - Thomas Bretz
693
694 * tcpip/MDriveCom.[h,cc]:
695 - added a missing white space behind the brightness and
696 fixed the wrong units of Zd/Az in the starguider report
697
698
699
700 2005/03/17 - Thomas Bretz
701
702 * main/MCosy.[h,cc]:
703 - implemented WM_GRB and TrackPositionGRB for GRB mode
704
705 * main/MStarguider.cc:
706 - added 'status' to FINDSTAR-REPORT
707 - send STARG-REPORT only if Starguider is switched on
708 - enhanced output in starguider report
709
710 * tcpip/MCeCoCom.cc:
711 - tried to backengineer the CC-REPORT because it is not documented
712 in the CC TDAS
713 - changed critical values for windspeed from 10/20/30 to 30/40/50
714
715 * tcpip/MDriveCom.[h,cc]:
716 - implemented handling of GRB command
717 - enhanced SendStargReport. Starguider Report now:
718 misszd[%05.3f] missaz[%05.3f]
719 nomzd[%c %03d %02d %03d] nomaz[%c %03d %02d %03d]
720 centerx[%05.1f] centery[%05.1f] n[%04d]
721 bright[%03.1f] mjd[%12.6f]
Note: See TracBrowser for help on using the repository browser.