Changeset 9529 in ntrip
- Timestamp:
- Nov 3, 2021, 4:05:36 PM (3 years ago)
- Location:
- trunk/BNC/src/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r9296 r9529 355 355 } 356 356 357 // Process clock corrections358 //////////////////////////////////////////////////////////////////////////// 359 void bncComb::slotNewC lkCorrections(QList<t_clkCorr> clkCorrections) {357 // Remember satllite code biases 358 //////////////////////////////////////////////////////////////////////////// 359 void bncComb::slotNewCodeBiases(QList<t_satCodeBias> codeBiases) { 360 360 QMutexLocker locker(&_mutex); 361 361 362 bncTime lastTime; 363 364 for (int ii = 0; ii < clkCorrections.size(); ii++) { 365 t_clkCorr& clkCorr = clkCorrections[ii]; 366 QString staID(clkCorr._staID.c_str()); 367 QString prn(clkCorr._prn.toInternalString().c_str()); 368 char sys = clkCorr._prn.system(); 362 for (int ii = 0; ii < codeBiases.size(); ii++) { 363 t_satCodeBias& codeBias = codeBiases[ii]; 364 QString staID(codeBias._staID.c_str()); 365 QString prn(codeBias._prn.toInternalString().c_str()); 366 char sys = codeBias._prn.system(); 369 367 370 368 if (!_cmbSysPrn.contains(sys)){ 371 369 continue; 372 }373 374 // Set the last time375 // -----------------376 if (lastTime.undef() || clkCorr._time > lastTime) {377 lastTime = clkCorr._time;378 370 } 379 371 … … 393 385 } 394 386 387 // Store the correction 388 // -------------------- 389 QMap<t_prn, t_satCodeBias>& storage = _satCodeBiases[acName]; 390 storage[codeBias._prn] = codeBias; 391 } 392 } 393 394 // Process clock corrections 395 //////////////////////////////////////////////////////////////////////////// 396 void bncComb::slotNewClkCorrections(QList<t_clkCorr> clkCorrections) { 397 QMutexLocker locker(&_mutex); 398 399 bncTime lastTime; 400 401 for (int ii = 0; ii < clkCorrections.size(); ii++) { 402 t_clkCorr& clkCorr = clkCorrections[ii]; 403 QString staID(clkCorr._staID.c_str()); 404 QString prn(clkCorr._prn.toInternalString().c_str()); 405 char sys = clkCorr._prn.system(); 406 407 if (!_cmbSysPrn.contains(sys)){ 408 continue; 409 } 410 411 // Set the last time 412 // ----------------- 413 if (lastTime.undef() || clkCorr._time > lastTime) { 414 lastTime = clkCorr._time; 415 } 416 417 // Find/Check the AC Name 418 // ---------------------- 419 QString acName; 420 QListIterator<cmbAC*> icAC(_ACs); 421 while (icAC.hasNext()) { 422 cmbAC* AC = icAC.next(); 423 if (AC->mountPoint == staID) { 424 acName = AC->name; 425 break; 426 } 427 } 428 if (acName.isEmpty()) { 429 continue; 430 } 431 395 432 // Check Modulo Time 396 433 // ----------------- … … 431 468 else { 432 469 newCorr->_orbCorr = storage[clkCorr._prn]; 470 } 471 } 472 473 // Check satellite code biases 474 // ---------------------------- 475 if (!_satCodeBiases.contains(acName)) { 476 delete newCorr; 477 continue; 478 } 479 else { 480 QMap<t_prn, t_satCodeBias>& storage = _satCodeBiases[acName]; 481 if (!storage.contains(clkCorr._prn)) { 482 delete newCorr; 483 continue; 484 } 485 else { 486 newCorr->_satCodeBias = storage[clkCorr._prn]; 433 487 } 434 488 } -
trunk/BNC/src/combination/bnccomb.h
r9292 r9529 26 26 void slotNewOrbCorrections(QList<t_orbCorr> orbCorrections); 27 27 void slotNewClkCorrections(QList<t_clkCorr> clkCorrections); 28 void slotNewCodeBiases(QList<t_satCodeBias> codeBiases); 28 29 29 30 signals: … … 31 32 void newOrbCorrections(QList<t_orbCorr>); 32 33 void newClkCorrections(QList<t_clkCorr>); 34 void newCodeBiases(QList<t_satCodeBias>); 33 35 34 36 private: … … 86 88 t_orbCorr _orbCorr; 87 89 t_clkCorr _clkCorr; 90 t_satCodeBias _satCodeBias; 88 91 QString _acName; 89 92 double _dClkResult; … … 117 120 QVector<cmbCorr*>& corrs(char sys) {return _buffer[sys][_resTime].corrs;} 118 121 119 QMutex _mutex; 120 QList<cmbAC*> _ACs; 121 bncTime _resTime; 122 QMap<char, QVector<cmbParam*>> _params; 123 QMap<char, QMap<bncTime, cmbEpoch>> _buffer; 124 bncRtnetDecoder* _rtnetDecoder; 125 QMap<char, SymmetricMatrix> _QQ; 126 QByteArray _log; 127 bncAntex* _antex; 128 double _MAXRES; 129 QMap<char, QString> _masterOrbitAC; 130 QMap<char, unsigned> _masterMissingEpochs; 131 e_method _method; 132 int _cmbSampl; 133 QMap<QString, QMap<t_prn, t_orbCorr> > _orbCorrections; 134 bncEphUser _ephUser; 135 SsrCorr* _ssrCorr; 136 QMap<char, unsigned> _cmbSysPrn; 137 bool _useGps; 138 bool _useGlo; 139 bool _useGal; 140 bool _useBds; 141 bool _useQzss; 142 bool _useSbas; 143 bool _useIrnss; 122 QMutex _mutex; 123 QList<cmbAC*> _ACs; 124 bncTime _resTime; 125 QMap<char, QVector<cmbParam*>> _params; 126 QMap<char, QMap<bncTime, cmbEpoch>> _buffer; 127 bncRtnetDecoder* _rtnetDecoder; 128 QMap<char, SymmetricMatrix> _QQ; 129 QByteArray _log; 130 bncAntex* _antex; 131 double _MAXRES; 132 QMap<char, QString> _masterOrbitAC; 133 QMap<char, unsigned> _masterMissingEpochs; 134 e_method _method; 135 int _cmbSampl; 136 QMap<QString, QMap<t_prn, t_orbCorr> > _orbCorrections; 137 QMap<QString, QMap<t_prn, t_satCodeBias> > _satCodeBiases; 138 bncEphUser _ephUser; 139 SsrCorr* _ssrCorr; 140 QMap<char, unsigned> _cmbSysPrn; 141 bool _useGps; 142 bool _useGlo; 143 bool _useGal; 144 bool _useBds; 145 bool _useQzss; 146 bool _useSbas; 147 bool _useIrnss; 144 148 }; 145 149
Note:
See TracChangeset
for help on using the changeset viewer.