Changeset 2022 in ntrip


Ignore:
Timestamp:
Nov 25, 2009, 6:02:00 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppthread.cpp

    r2021 r2022  
    4343#include "bncpppthread.h"
    4444
     45extern "C" {
     46#include "clock_orbit_rtcm.h"
     47}
     48
    4549using namespace std;
    4650
     
    5054  _staID         = staID;
    5155  _isToBeDeleted = false;
    52   cout << "PPP Client " << _staID.data() << " constructor\n";
    5356}
    5457
     
    103106    t_obsInternal* obs = &(pp->_o);
    104107    QString staID = QString(obs->StatID);
    105     cout << obs->GPSWeek << " " << obs->GPSWeeks << " "
    106          << staID.toAscii().data() << " " << obs->satSys << obs->satNum << endl;
     108    cout << "DATA " << obs->GPSWeek << " " << obs->GPSWeeks << " "
     109         << staID.toAscii().data() << " "
     110         << obs->satSys << obs->satNum << endl;
    107111  }
    108112}
     
    129133void bncPPPthread::slotNewCorrections(QList<QString> corrList) {
    130134  QMutexLocker locker(&_mutex);
    131   cout << "PPP Client: new corrections " << corrList.size() << endl;
     135  QListIterator<QString> it(corrList);
     136  while (it.hasNext()) {
     137    QTextStream in(it.next().toAscii());
     138    int     messageType;
     139    int     updateInterval;
     140    int     GPSweek;
     141    double  GPSweeks;
     142    QString prn;
     143    in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn;
     144    if ( messageType == COTYPE_GPSCOMBINED     ||
     145         messageType == COTYPE_GLONASSCOMBINED ) {
     146      t_corr* cc = 0;
     147      if (_corr.contains(prn)) {
     148        cc = _corr.value(prn);
     149      }
     150      else {
     151        cc = new t_corr();
     152        _corr[prn] = cc;
     153      }
     154      in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2];
     155    }
     156  }
    132157}
  • trunk/BNC/bncpppthread.h

    r2021 r2022  
    3232#include "RTCM3/ephemeris.h"
    3333
     34struct t_corr {
     35  int    iod;
     36  double dClk;
     37  double rao[3];
     38};
     39
    3440class bncPPPthread : public QThread {
    3541 Q_OBJECT
     
    5763
    5864 private:
    59   QByteArray            _staID;
    60   bool                  _isToBeDeleted;
    61   QMutex                _mutex;
    62   QMap<QString, t_eph*> _eph;
     65  QByteArray             _staID;
     66  bool                   _isToBeDeleted;
     67  QMutex                 _mutex;
     68  QMap<QString, t_eph*>  _eph;
     69  QMap<QString, t_corr*> _corr;
    6370};
    6471
Note: See TracChangeset for help on using the changeset viewer.