Changeset 2022 in ntrip
- Timestamp:
- Nov 25, 2009, 6:02:00 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppthread.cpp
r2021 r2022 43 43 #include "bncpppthread.h" 44 44 45 extern "C" { 46 #include "clock_orbit_rtcm.h" 47 } 48 45 49 using namespace std; 46 50 … … 50 54 _staID = staID; 51 55 _isToBeDeleted = false; 52 cout << "PPP Client " << _staID.data() << " constructor\n";53 56 } 54 57 … … 103 106 t_obsInternal* obs = &(pp->_o); 104 107 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; 107 111 } 108 112 } … … 129 133 void bncPPPthread::slotNewCorrections(QList<QString> corrList) { 130 134 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 } 132 157 } -
trunk/BNC/bncpppthread.h
r2021 r2022 32 32 #include "RTCM3/ephemeris.h" 33 33 34 struct t_corr { 35 int iod; 36 double dClk; 37 double rao[3]; 38 }; 39 34 40 class bncPPPthread : public QThread { 35 41 Q_OBJECT … … 57 63 58 64 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; 63 70 }; 64 71
Note:
See TracChangeset
for help on using the changeset viewer.