Changeset 4694 in ntrip


Ignore:
Timestamp:
Sep 9, 2012, 5:25:03 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4693 r4694  
    247247                                     .arg(obs.satNum, 2, 10, QChar('0'));
    248248 
    249         _allObsMap[prn].addObs(obs);
    250 
    251         _obsStat._prnStat[prn]._numObs += 1;
     249        t_irc irc = _allObsMap[prn].addObs(obs);
     250
     251        if (irc == success) {
     252          const t_oneObs* newObs = _allObsMap[prn]._oneObsVec.last();
     253          if (newObs->_hasL1 && newObs->_hasL2) {
     254            _obsStat._prnStat[prn]._numObs += 1;
     255          }
     256        }
    252257      }
    253258 
     
    298303// 
    299304////////////////////////////////////////////////////////////////////////////
    300 void t_reqcAnalyze::t_allObs::addObs(const t_obs& obs) {
     305t_irc t_reqcAnalyze::t_allObs::addObs(const t_obs& obs) {
    301306
    302307  t_oneObs* newObs = new t_oneObs(obs.GPSWeek, obs.GPSWeeks);
     
    382387  if (okFlag) {
    383388    _oneObsVec << newObs;
     389    return success;
    384390  }
    385391  else {
    386392    delete newObs;
     393    return failure;
    387394  }
    388395}
  • trunk/BNC/src/rinex/reqcanalyze.h

    r4689 r4694  
    146146      }
    147147    }
    148     void addObs(const t_obs& obs);
     148    t_irc addObs(const t_obs& obs);
    149149    QVector<t_oneObs*> _oneObsVec;
    150150  };
Note: See TracChangeset for help on using the changeset viewer.