Changeset 2231 in ntrip for trunk/BNC/bncpppclient.cpp


Ignore:
Timestamp:
Jan 12, 2010, 10:44:39 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2229 r2231  
    179179  }
    180180
    181   QString prn =
    182         QString("%1%2").arg(obs->satSys).arg(obs->satNum, 2, 10, QChar('0'));
    183 
    184   _epoData->satData[prn] = satData;
     181  if      (obs->satSys == 'G') {
     182    QString prn = QString("G%2").arg(obs->satNum, 2, 10, QChar('0'));
     183    _epoData->satDataGPS[prn] = satData;
     184  }
     185  else if (obs->satSys == 'R') {
     186    QString prn = QString("R%2").arg(obs->satNum, 2, 10, QChar('0'));
     187    _epoData->satDataGlo[prn] = satData;
     188  }
    185189}
    186190
     
    400404  // Data Pre-Processing
    401405  // -------------------
    402   QMutableMapIterator<QString, t_satData*> im(_epoData->satData);
    403   while (im.hasNext()) {
    404     im.next();
    405     QString    prn     = im.key();
    406     t_satData* satData = im.value();
     406  QMutableMapIterator<QString, t_satData*> iGPS(_epoData->satDataGPS);
     407  while (iGPS.hasNext()) {
     408    iGPS.next();
     409    QString    prn     = iGPS.key();
     410    t_satData* satData = iGPS.value();
    407411
    408412    if (cmpToT(prn, satData) != success) {
    409413      delete satData;
    410       im.remove();
     414      iGPS.remove();
     415      continue;
     416    }
     417  }
     418
     419  QMutableMapIterator<QString, t_satData*> iGlo(_epoData->satDataGlo);
     420  while (iGlo.hasNext()) {
     421    iGlo.next();
     422    QString    prn     = iGlo.key();
     423    t_satData* satData = iGlo.value();
     424
     425    if (cmpToT(prn, satData) != success) {
     426      delete satData;
     427      iGlo.remove();
    411428      continue;
    412429    }
Note: See TracChangeset for help on using the changeset viewer.