Changeset 5833 in ntrip
- Timestamp:
- Aug 6, 2014, 2:59:49 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppThread.cpp
r5832 r5833 143 143 } 144 144 145 //146 ////////////////////////////////////////////////////////////////////////////147 void t_pppRun::slotNewCorrections(QStringList corrList) {148 QMutexLocker locker(&_mutex);149 150 QStringListIterator it(corrList);151 while (it.hasNext()) {152 it.next();153 }154 155 // _pppClient->putOrbCorrections(const std::vector<t_orbCorr*>& corr);156 // _pppClient->putClkCorrections(const std::vector<t_clkCorr*>& corr);157 // _pppClient->putBiases(const std::vector<t_satBiases*>& biases);158 }159 145 // 160 146 //////////////////////////////////////////////////////////////////////////// … … 178 164 // Find the corresponding data epoch or create a new one 179 165 // ----------------------------------------------------- 180 t_ pppEpoData* epoData= 0;181 deque<t_ pppEpoData*>::const_iterator it;182 for (it = _ pppEpochs.begin(); it != _pppEpochs.end(); it++) {166 t_epoData* epoch = 0; 167 deque<t_epoData*>::const_iterator it; 168 for (it = _epoData.begin(); it != _epoData.end(); it++) { 183 169 if (newObs->_time == (*it)->_time) { 184 epo Data= *it;170 epoch = *it; 185 171 break; 186 172 } 187 173 } 188 if (epo Data== 0) {189 if (_ pppEpochs.empty() || newObs->_time > _pppEpochs.back()->_time) {190 epo Data = new t_pppEpoData;191 epo Data->_time = newObs->_time;192 _ pppEpochs.push_back(epoData);174 if (epoch == 0) { 175 if (_epoData.empty() || newObs->_time > _epoData.back()->_time) { 176 epoch = new t_epoData; 177 epoch->_time = newObs->_time; 178 _epoData.push_back(epoch); 193 179 } 194 180 } … … 196 182 // Fill the new observation and add it to the corresponding epoch 197 183 // -------------------------------------------------------------- 198 if (epo Data!= 0) {199 epo Data->_satObs.push_back(newObs);184 if (epoch != 0) { 185 epoch->_satObs.push_back(newObs); 200 186 map<string, t_frqObs*> frqObsMap; 201 187 for (unsigned iEntry = 0; iEntry < GNSSENTRY_NUMBER; iEntry++) { … … 231 217 // Process the oldest epoch 232 218 // ------------------------ 233 if (_ pppEpochs.size() > 1) {234 235 const vector<t_satObs*>& satObs = _ pppEpochs.front()->_satObs;219 if (_epoData.size() > 1) { 220 221 const vector<t_satObs*>& satObs = _epoData.front()->_satObs; 236 222 237 223 t_output output; 238 224 _pppClient->processEpoch(satObs, &output); 239 225 240 delete _ pppEpochs.front(); _pppEpochs.pop_front();226 delete _epoData.front(); _epoData.pop_front(); 241 227 242 228 emit newMessage(QByteArray(output._log.c_str()), true); … … 244 230 } 245 231 232 // 233 //////////////////////////////////////////////////////////////////////////// 234 void t_pppRun::slotNewCorrections(QStringList corrList) { 235 QMutexLocker locker(&_mutex); 236 237 QStringListIterator it(corrList); 238 while (it.hasNext()) { 239 it.next(); 240 } 241 242 // _pppClient->putOrbCorrections(const std::vector<t_orbCorr*>& corr); 243 // _pppClient->putClkCorrections(const std::vector<t_clkCorr*>& corr); 244 // _pppClient->putBiases(const std::vector<t_satBiases*>& biases); 245 } -
trunk/BNC/src/PPP/pppThread.h
r5823 r5833 29 29 30 30 private: 31 class t_ pppEpoData {31 class t_epoData { 32 32 public: 33 t_ pppEpoData() {}34 ~t_ pppEpoData() {33 t_epoData() {} 34 ~t_epoData() { 35 35 for (unsigned ii = 0; ii < _satObs.size(); ii++) { 36 36 delete _satObs[ii]; … … 41 41 }; 42 42 43 QMutex 44 const t_pppOptions* 45 t_pppClient* 46 std::deque<t_ pppEpoData*> _pppEpochs;43 QMutex _mutex; 44 const t_pppOptions* _opt; 45 t_pppClient* _pppClient; 46 std::deque<t_epoData*> _epoData; 47 47 }; 48 48 … … 59 59 private: 60 60 const t_pppOptions* _opt; 61 t_pppRun* _pppRun;61 t_pppRun* _pppRun; 62 62 }; 63 63
Note:
See TracChangeset
for help on using the changeset viewer.