Changeset 2004 in ntrip


Ignore:
Timestamp:
Nov 21, 2009, 4:17:37 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r2000 r2004  
    284284  // _rawOutFile->open(QIODevice::WriteOnly);
    285285
     286  // Initialize PPP Clinet?
     287  // ----------------------
     288  bool pppClient = false;
     289  if (settings.value("pppMount").toString() == _staID) {
     290    pppClient = true;
     291  }
    286292
    287293  // Instantiate the decoder
     
    291297    emit(newMessage(_staID + ": Get data in RTCM 2.x format", true));
    292298    _decoder = new RTCM2Decoder(_staID.data());
    293     _PPPthread = new bncPPPthread(_staID);
     299    if (pppClient) {
     300      _PPPthread = new bncPPPthread(_staID);
     301    }
    294302  }
    295303  else if (_format.indexOf("RTCM_3") != -1 || _format.indexOf("RTCM3") != -1 ||
     
    299307    connect((RTCM3Decoder*) _decoder, SIGNAL(newMessage(QByteArray,bool)),
    300308            this, SIGNAL(newMessage(QByteArray,bool)));
    301     _PPPthread = new bncPPPthread(_staID);
     309    if (pppClient) {
     310      _PPPthread = new bncPPPthread(_staID);
     311    }
    302312  }
    303313  else if (_format.indexOf("RTIGS") != -1) {
    304314    emit(newMessage(_staID + ": Get data in RTIGS format", true));
    305315    _decoder = new RTIGSDecoder();
    306     _PPPthread = new bncPPPthread(_staID);
     316    if (pppClient) {
     317      _PPPthread = new bncPPPthread(_staID);
     318    }
    307319  }
    308320  else if (_format.indexOf("GPSS") != -1 || _format.indexOf("BNC") != -1) {
  • trunk/BNC/bncpppthread.cpp

    r2002 r2004  
    5050  _staID         = staID;
    5151  _isToBeDeleted = false;
     52  cout << "PPP Client " << _staID.data() << " constructor\n";
    5253}
    5354
     
    5859    wait();
    5960  }
     61  cout << "PPP Client " << _staID.data() << " destructor\n";
    6062}
    6163
     
    9294void bncPPPthread::slotNewEpochData(QList<p_obs> obsList) {
    9395  QMutexLocker locker(&_mutex);
     96  cout << "PPP Client: new observations " << obsList.size() << endl;
    9497}
    9598
     
    98101void bncPPPthread::slotNewEphGPS(gpsephemeris gpseph) {
    99102  QMutexLocker locker(&_mutex);
     103  cout << "PPP Client: new ephemeris " << gpseph.satellite << endl;
    100104}
    101105
     
    104108void bncPPPthread::slotNewCorrections(QList<QString> corrList) {
    105109  QMutexLocker locker(&_mutex);
     110  cout << "PPP Client: new corrections " << corrList.size() << endl;
    106111}
Note: See TracChangeset for help on using the changeset viewer.