Changeset 4263 in ntrip


Ignore:
Timestamp:
Jun 22, 2012, 11:05:56 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/bncpostprocess.cpp

    r4261 r4263  
    126126    else if (type.indexOf("L1") == 0 && obs.L1C == 0.0) {
    127127      obs.L1C = rnxSat.obs[iType];
     128      if      (obs.slip_cnt_L1 < 0) {  // undefined value
     129        obs.slip_cnt_L1 = 0;
     130      }
     131      else if (rnxSat.lli[iType] & 1) {
     132        ++obs.slip_cnt_L1;
     133      }
    128134    }
    129135    else if (type.indexOf("C2") == 0 && obs.C2  == 0.0) {
     
    135141    else if (type.indexOf("L2") == 0 && obs.L2C == 0.0) {
    136142      obs.L2C = rnxSat.obs[iType];
     143      if      (obs.slip_cnt_L2 < 0) {  // undefined value
     144        obs.slip_cnt_L2 = 0;
     145      }
     146      else if (rnxSat.lli[iType] & 1) {
     147        ++obs.slip_cnt_L2;
     148      }
    137149    }
    138150  }
  • trunk/BNC/rinex/reqcanalyze.cpp

    r4262 r4263  
    136136      }
    137137
     138      QString prn = QString("%1%2").arg(obs.satSys)
     139                                   .arg(obs.satNum, 2, 10, QChar('0'));
     140      _satStat[prn].addObs(obs);
    138141    }
    139142
     
    142145  _log->flush();
    143146}
     147
     148// 
     149////////////////////////////////////////////////////////////////////////////
     150void t_reqcAnalyze::t_satStat::addObs(const t_obs& obs) {
     151  if (currObs) {
     152    delete prevObs;
     153    prevObs = currObs;
     154  }
     155  currObs = new t_obs(obs);
     156}
  • trunk/BNC/rinex/reqcanalyze.h

    r4260 r4263  
    2929#include "rnxobsfile.h"
    3030#include "rnxnavfile.h"
     31#include "RTCM/GPSDecoder.h"
    3132#include "RTCM3/ephemeris.h"
    3233
     
    4950 
    5051 private:
     52  class t_satStat {
     53   public:
     54    t_satStat() {
     55      currObs = 0;
     56      prevObs = 0;
     57    }
     58    ~t_satStat() {
     59      delete currObs;
     60      delete prevObs;
     61    }
     62    void addObs(const t_obs& obs);
     63    t_obs* currObs;
     64    t_obs* prevObs;
     65  };
     66
    5167  void analyzeFile(t_rnxObsFile* obsFile);
    5268
    53   QString                _logFileName;
    54   QFile*                 _logFile;
    55   QTextStream*           _log;
    56   QStringList            _obsFileNames;
    57   QVector<t_rnxObsFile*> _rnxObsFiles;
    58   QStringList            _navFileNames;
    59   QVector<t_eph*>        _ephs;
    60 ;
     69  QString                  _logFileName;
     70  QFile*                   _logFile;
     71  QTextStream*             _log;
     72  QStringList              _obsFileNames;
     73  QVector<t_rnxObsFile*>   _rnxObsFiles;
     74  QStringList              _navFileNames;
     75  QVector<t_eph*>          _ephs;
     76  QMap<QString, t_satStat> _satStat;
    6177};
    6278
Note: See TracChangeset for help on using the changeset viewer.