Changeset 9019 in ntrip


Ignore:
Timestamp:
Aug 18, 2020, 9:23:27 AM (6 weeks ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccaster.cpp

    r9016 r9019  
    596596  }
    597597
    598   QMap<t_prn, double>& hlpMap = _lockTimeMap[obs._staID];
    599   QMap<t_prn, double>::const_iterator it = hlpMap.find(obs._prn);
    600   if (it == hlpMap.end()) {
    601     hlpMap[obs._prn] = minLockTime;
    602     for (unsigned ii = 0; ii < obs._obs.size(); ii++) {
    603       t_frqObs* frqObs = obs._obs[ii];
    604       frqObs->_slipCounter = 0;
    605     }
     598  QMap<t_prn, double>& ltMap = _lockTimeMap[obs._staID];
     599  QMap<t_prn, int>&    jcMap = _jumpCounterMap[obs._staID];
     600
     601  QMap<t_prn, double>::const_iterator it = ltMap.find(obs._prn);
     602  if (it == ltMap.end()) {
     603    ltMap[obs._prn] = minLockTime;
     604    jcMap[obs._prn] = 0;
    606605  }
    607606  else {
    608     if (hlpMap[obs._prn] < minLockTime) {
    609       hlpMap[obs._prn] = minLockTime;
    610       for (unsigned ii = 0; ii < obs._obs.size(); ii++) {
    611         t_frqObs* frqObs = obs._obs[ii];
    612         frqObs->_slipCounter += 1;
    613         if (frqObs->_slipCounter > 9999) {
    614           frqObs->_slipCounter = 0;
    615         }
    616       }
    617     }
    618   }
    619 }
     607    if (ltMap[obs._prn] < minLockTime) {
     608      ltMap[obs._prn] = minLockTime;
     609      jcMap[obs._prn] += 1;
     610      if (jcMap[obs._prn] > 9999) {
     611        jcMap[obs._prn] = 0;
     612      }
     613    }
     614  }
     615  for (unsigned ii = 0; ii < obs._obs.size(); ii++) {
     616    t_frqObs* frqObs = obs._obs[ii];
     617    frqObs->_slipCounter = jcMap[obs._prn];
     618  }
     619}
  • trunk/BNC/src/bnccaster.h

    r9016 r9019  
    8989   QList<QTcpSocket*>*             _miscSockets;
    9090   QMap<std::string, QMap<t_prn, double> > _lockTimeMap;
     91   QMap<std::string, QMap<t_prn, int> >    _jumpCounterMap;
    9192};
    9293
Note: See TracChangeset for help on using the changeset viewer.