Ignore:
Timestamp:
02/21/08 22:03:06 (17 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/cosy.cc

    r8864 r8869  
    1414#include "MCosy.h"
    1515#include "MTime.h"
     16#include "MDriveCom.h"
    1617
    1718#include "MLogManip.h"
     
    9293    const TString sps           = arg.GetStringAndRemove("--sps=", "sps");
    9394    const TString ceco          = arg.GetStringAndRemove("--cc=", "ceco"); // ceco
     95    const Int_t   ceco_tx       = arg.GetIntAndRemove("--cc-tx=", 7314);//7304);
     96    const Int_t   ceco_rx       = arg.GetIntAndRemove("--cc-rx=", 7414);//7404);
    9497    const TString pointing      = arg.GetStringAndRemove("--pointing-model=", "bending2.txt"); // ceco
    9598    const TString kConfig       = arg.GetStringAndRemove("--config=", ".cosyrc"); // ceco
     
    191194            break;
    192195        }
    193 */
    194     MCosy *cosy = new MCosy(env, ceco, pointing);
     196        */
     197
     198    MDriveCom com(ceco, ceco_tx, ceco_rx);
     199
     200    MCosy *cosy = new MCosy(env, &com, pointing);
     201
     202    com.SetMsgQueue(cosy);
    195203
    196204    Interface *interface = new Ethernet(sps, 5357, 5358, cosy);
     
    211219        gLog << all << "- Starting Camera." << endl;
    212220        client=new MStarguider(MObservatory::kMagic1, channel);
     221        //client.SetDriveCom(&com);
    213222        cosy->SetStarguider(client);
    214223        client->SetCosy(cosy);
     
    239248    gLog << all << "Deleting cosy at " << MTime(-1) << endl;
    240249
     250    //com.SetMsgQueue(NULL);
     251
    241252    delete cosy;
    242253
Note: See TracChangeset for help on using the changeset viewer.