Changeset 2613 for trunk


Ignore:
Timestamp:
12/07/03 13:09:00 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Cosy
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/Changelog

    r2568 r2613  
    11                                                                  -*-*- END -*-*-
     2 2003/12/07 - Thomas Bretz
     3
     4   * tcpip/MDriveCom.cc:
     5     - log CC-COMMANDS to log-file
     6
     7   * main/MStarguider.cc:
     8     - fixed handling of DISPLAY variable
     9
     10   * main/MCosy.cc:
     11     - undef EXPERT
     12     - removed comments before CheckNetwork
     13
     14   * gui/MGImage.cc:
     15     - fixed some image copy algorithm
     16     - removed nonsense ==13 check for TryLock
     17
     18   * devdrv/macs.cc:
     19     - shift crew reported problems: changed timeout from 250ms to 400ms
     20
     21   * stars.txt:
     22     - added Capella
     23
     24   * Makefile:
     25     - added 'install'
     26
     27
     28
    229 2003/11/25 - Thomas Bretz (La Palma)
    330
    4   * slog:
     31   * slog:
    532    - added this small script to analyze log-files
    633   
  • trunk/MagicSoft/Cosy/devdrv/macs.cc

    r2518 r2613  
    383383    //SetNoWait(TRUE);
    384384
    385     StartGuarding(250, 1, kFALSE); // Using PDO1 @ 100ms
     385    StartGuarding(400, 1, kFALSE); // Using PDO1 @ 100ms
    386386    //StartGuarding(250, 4);
    387387    //StartHostGuarding();
  • trunk/MagicSoft/Cosy/gui/MGImage.cc

    r2518 r2613  
    8787    while (s<e)
    8888    {
    89         //      11111100    11111000      11111100
    90         *d++ = (*s&0xfc) | (*s&0xf8)<<5 | (*s&0xfc)<<11;
     89        //      11111100    11111000      11111000
     90        *d++ = (*s&0xfc) | (*s&0xf8)<<5 | (*s&0xf8)<<11;
    9191        s++;
    9292    }
     
    109109void MGImage::DrawImg(const byte *buffer)
    110110{
    111     if (fMuxPixmap->TryLock()==13)
     111    if (fMuxPixmap->TryLock())
    112112        return;
    113113
     
    181181void MGImage::DrawColImg(const byte *gbuf, const byte *cbuf)
    182182{
    183     if (fMuxPixmap->TryLock()==13)
     183    if (fMuxPixmap->TryLock())
    184184        return;
    185185
  • trunk/MagicSoft/Cosy/main/MCosy.cc

    r2518 r2613  
    5252*/
    5353
    54 #define EXPERT
    55 //#undef EXPERT
     54//#define EXPERT
     55#undef EXPERT
    5656
    5757double MCosy::Rad2SE(double rad) const
     
    13361336
    13371337            ZdAz dest = *((ZdAz*)mp) * kDeg2Rad;
    1338             //if (!SetPosition(dest))
    1339             //    return (void*)0x1234;
     1338            if (!SetPosition(dest))
     1339                return (void*)0x1234;
    13401340
    13411341            SlaStars sla(fObservatory);
     
    13531353        cout << "WM_Position: start." << endl;
    13541354        {
    1355             //if (!CheckNetwork())
    1356             //    return (void*)0xebb0;
     1355            if (!CheckNetwork())
     1356                return (void*)0xebb0;
    13571357
    13581358            ZdAz dest = *((ZdAz*)mp);
     
    19211921    const ZdAz seist = GetSePos()*2*TMath::Pi()/16384; // [se]
    19221922
    1923     cout << seist.Zd()*kRad2Deg << " " << seist.Az()*kRad2Deg << endl;
     1923    //cout << seist.Zd()*kRad2Deg << " " << seist.Az()*kRad2Deg << endl;
    19241924
    19251925    ZdAz back = fBending.CorrectBack(seist)*180/TMath::Pi();
    19261926
    1927     cout << back.Zd() << " " << back.Az() << endl;
     1927    //cout << back.Zd() << " " << back.Az() << endl;
    19281928
    19291929    return back;
  • trunk/MagicSoft/Cosy/main/MStarguider.cc

    r2518 r2613  
    180180
    181181    TString disp=gVirtualX->DisplayName();
    182     if (disp.First(':')>0)
     182    cout << "Display: " << disp << endl;
     183    if (disp.First(':')>=0)
    183184        disp=disp(0, disp.First(':'));
    184185
    185186    if (disp.IsNull() || disp==(TString)"localhost")
    186187    {
    187         fInterpol->CheckEntry(IDM_kInterpol1);
    188         fIntRate = 1;
     188        fInterpol->CheckEntry(IDM_kInterpol5);
     189        fIntRate = 5;
    189190    }
    190191    else
  • trunk/MagicSoft/Cosy/tcpip/MDriveCom.cc

    r2517 r2613  
    5353    }
    5454
    55     cout << "CC-COMMAND: Track " << ra << "h " << dec << "deg '" << str << "'" << endl;
     55    lout << "CC-COMMAND: Track " << ra << "h " << dec << "deg '" << str
     56<< "'" << endl;
    5657
    5758    ra *= 15; // h -> deg
     
    8081    }
    8182
    82     cout << "CC-COMMAND: Move " << zd << "deg " << az << "deg" << endl;
     83    lout << "CC-COMMAND: Move " << zd << "deg " << az << "deg" << endl;
    8384
    8485    ZdAz za(zd, az);
     
    103104    {
    104105        cout << "MDriveCom - STOP!... start." << endl;
     106        lout << "CC-COMMAND: STOP!" << endl;       
    105107        fQueue->PostMsg(WM_STOP);
    106108        cout << "MDriveCom - STOP!... done." << endl;
Note: See TracChangeset for help on using the changeset viewer.