Changeset 5140 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
May 7, 2013, 3:58:58 PM (11 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r5136 r5140  
    241241        t_postProcessing::setObsFromRnx(obsFile, _currEpo, rnxSat, obs);
    242242 
    243         if (obs.satSys == 'R') {
    244           // TODO: set channel number
    245         }
    246  
    247243        QString prn = QString("%1%2").arg(obs.satSys)
    248244                                     .arg(obs.satNum, 2, 10, QChar('0'));
    249245 
     246        t_ephGlo* ephGlo = 0;
     247        if (obs.satSys == 'R') {
     248          for (int ie = 0; ie < _ephs.size(); ie++) {
     249            if (_ephs[ie]->prn() == prn) {
     250              ephGlo = dynamic_cast<t_ephGlo*>(_ephs[ie]);
     251              break;
     252            }
     253          }
     254          if (ephGlo) {
     255            obs.slotNum = ephGlo->slotNum();
     256          }
     257        }
     258 
    250259        t_irc irc = _allObsMap[prn].addObs(obs);
    251260
    252261        if (irc == success) {
    253           const t_oneObs* newObs = _allObsMap[prn]._oneObsVec.last();
     262          t_oneObs* newObs = _allObsMap[prn]._oneObsVec.last();
     263          if (ephGlo) {
     264            newObs->_slotSet = true;
     265          }
    254266          if (newObs->_hasL1 && newObs->_hasL2) {
    255267            _obsStat._prnStat[prn]._numObs += 1;
     
    485497    // Loop over all Epochs within one Chunk of Data
    486498    // ---------------------------------------------
     499    bool slotSet = false;
    487500    for (int ii = 0; ii < numEpo; ii++) {
    488501      int iEpo = chunkStart + ii;
    489502      const t_oneObs* oneObs = allObs._oneObsVec[iEpo];
     503      if (oneObs->_slotSet) {
     504        slotSet = true;
     505      }
    490506
    491507      currTime.set(oneObs->_GPSWeek, oneObs->_GPSWeeks);
     
    572588    // Compute the Multipath
    573589    // ---------------------
    574     if (prn[0] != 'R') { // TODO
     590    if (prn[0] != 'R' || slotSet) {
    575591      bool slipMP = false;
    576592      meanMP1 /= numEpo;
  • trunk/BNC/src/rinex/reqcanalyze.h

    r4704 r5140  
    127127      _SNR1     = 0.0;
    128128      _SNR2     = 0.0;
     129      _slotSet  = false;
    129130    }
    130131    int    _GPSWeek;
     
    138139    double _SNR1;
    139140    double _SNR2;
     141    bool   _slotSet;
    140142  };
    141143
Note: See TracChangeset for help on using the changeset viewer.