Changeset 2549 in ntrip


Ignore:
Timestamp:
Aug 8, 2010, 4:57:47 PM (14 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2548 r2549  
    4141#include <newmatio.h>
    4242#include <iomanip>
     43#include <sstream>
    4344
    4445#include "bncpppclient.h"
     
    5455
    5556using namespace std;
     57
     58////#define DEBUG_OUTPUT
    5659
    5760// Constructor
     
    126129  t_obsInternal* obs = &(pp->_o);
    127130
     131#ifdef DEBUG_OUTPUT
     132  ostringstream str;
     133  str.setf(ios::fixed);
     134  str << "bncPPPclient::putNewObs: " << obs->satSys << obs->satNum;
     135  emit newMessage(QByteArray(str.str().c_str()), false);
     136#endif
     137
    128138  if (obs->satSys != 'G' && !_useGlonass) {
    129139    return;
     
    249259  QString prn = QString("G%1").arg(gpseph.satellite, 2, 10, QChar('0'));
    250260
     261#ifdef DEBUG_OUTPUT
     262  ostringstream str;
     263  str.setf(ios::fixed);
     264  str << "bncPPPclient::slotNewEphGPS: " << prn.toAscii().data();
     265  emit newMessage(QByteArray(str.str().c_str()), false);
     266#endif
     267
    251268  if (_eph.contains(prn)) {
    252269    t_ephGPS* ee = static_cast<t_ephGPS*>(_eph.value(prn));
     
    270287
    271288  QString prn = QString("R%1").arg(gloeph.almanac_number, 2, 10, QChar('0'));
     289
     290#ifdef DEBUG_OUTPUT
     291  ostringstream str;
     292  str.setf(ios::fixed);
     293  str << "bncPPPclient::slotNewEphGlonass: " << prn.toAscii().data();
     294  emit newMessage(QByteArray(str.str().c_str()), false);
     295#endif
    272296
    273297  if (_eph.contains(prn)) {
     
    296320    return;
    297321  }
     322
     323#ifdef DEBUG_OUTPUT
     324  ostringstream str;
     325  str.setf(ios::fixed);
     326  str << "bncPPPclient::slotNewCorrections: ";
     327#endif
    298328
    299329  // Remove All Corrections
     
    332362
    333363      cc->tt.set(GPSweek, GPSweeks);
     364
     365#ifdef DEBUG_OUTPUT
     366      str << prn.toAscii().data() << " ";
     367#endif
    334368
    335369      if      ( messageType == COTYPE_GPSCOMBINED    ||
     
    407441  }
    408442
     443#ifdef DEBUG_OUTPUT
     444  emit newMessage(QByteArray(str.str().c_str()), false);
     445#endif
     446
    409447  QMutableMapIterator<QString, t_corr*> im(_corr);
    410448  while (im.hasNext()) {
Note: See TracChangeset for help on using the changeset viewer.