Changeset 5780 in ntrip


Ignore:
Timestamp:
Aug 4, 2014, 1:55:27 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/ppp.h

    r5763 r5780  
    4040};
    4141
    42 class t_obs  {
     42class t_pppObs  {
    4343 public:
    44   t_obs() {
     44  t_pppObs() {
    4545    _code            = 0.0;         
    4646    _codeValid       = false;     
     
    7171class t_pppSatObs {
    7272 public:
    73   t_prn              _prn;
    74   bncTime            _time;
    75   std::vector<t_obs> _obs;
     73  t_prn                 _prn;
     74  bncTime               _time;
     75  std::vector<t_pppObs> _obs;
    7676};
    7777
  • trunk/BNC/src/PPP/pppThread.cpp

    r5779 r5780  
    167167  }
    168168
    169   vector<t_pppSatObs*> satObs;
     169  vector<t_pppSatObs*> pppSatObs;
    170170  QListIterator<t_obs> it(obsList);
    171171  while (it.hasNext()) {
    172     const t_obs& obs = it.next();
     172    const t_obs& oldObs = it.next();
     173    t_pppSatObs* newObs = new t_pppSatObs;
     174
     175    pppSatObs.push_back(newObs);
    173176  }
    174177
    175178  t_output output;
    176   _pppClient->processEpoch(satObs, &output);
     179  _pppClient->processEpoch(pppSatObs, &output);
    177180
    178   for (unsigned ii = 0; ii < satObs.size(); ii++) {
    179     delete satObs[ii];
     181  for (unsigned ii = 0; ii < pppSatObs.size(); ii++) {
     182    delete pppSatObs[ii];
    180183  }
    181   satObs.clear();
     184  pppSatObs.clear();
    182185
    183186  emit newMessage(QByteArray(output._log.c_str()), true);
  • trunk/BNC/src/PPP/satobs.cpp

    r5750 r5780  
    6363  _outlier    = false;
    6464  for (unsigned ii = 0; ii < pppSatObs._obs.size(); ii++) {
    65     const t_obs& obs = pppSatObs._obs[ii];
     65    const t_pppObs& obs = pppSatObs._obs[ii];
    6666    t_obsType obsType = string(obs._rnxType2ch).substr(0,2);
    67     _allObs[obsType] = new t_obs(obs);
     67    _allObs[obsType] = new t_pppObs(obs);
    6868  }
    6969  prepareObs();
     
    7373////////////////////////////////////////////////////////////////////////////
    7474t_satObs::~t_satObs() {
    75   map<t_obsType, t_obs*>::const_iterator it;
     75  map<t_obsType, t_pppObs*>::const_iterator it;
    7676  for (it = _allObs.begin(); it != _allObs.end(); it++) {
    7777    delete it->second;
     
    9696    obsType1[1] = preferredAttrib[iPref];
    9797    if (_validObs1 == 0 && _allObs.find(obsType1) != _allObs.end()) {
    98       t_obs* obs = _allObs[obsType1];
     98      t_pppObs* obs = _allObs[obsType1];
    9999      if (obs->_codeValid && obs->_phaseValid) {
    100100        _validObs1 = obs;
     
    105105      obsType2[1] = preferredAttrib[iPref];
    106106      if (_validObs2 == 0 && _allObs.find(obsType2) != _allObs.end()) {
    107         t_obs* obs = _allObs[obsType2];
     107        t_pppObs* obs = _allObs[obsType2];
    108108        if (obs->_codeValid && obs->_phaseValid) {
    109109          _validObs2 = obs;
  • trunk/BNC/src/PPP/satobs.h

    r5743 r5780  
    4444
    4545  bool slip() const {
    46     std::map<t_obsType, t_obs*>::const_iterator it;
     46    std::map<t_obsType, t_pppObs*>::const_iterator it;
    4747    for (it = _allObs.begin(); it != _allObs.end(); it++) {
    4848      if (it->second->_slip) {
     
    5555  int slipCounter() const {
    5656    int cnt = -1;
    57     std::map<t_obsType, t_obs*>::const_iterator it;
     57    std::map<t_obsType, t_pppObs*>::const_iterator it;
    5858    for (it = _allObs.begin(); it != _allObs.end(); it++) {
    5959      if (it->second->_slipCounter > cnt) {
     
    6666  int biasJumpCounter() const {
    6767    int jmp = -1;
    68     std::map<t_obsType, t_obs*>::const_iterator it;
     68    std::map<t_obsType, t_pppObs*>::const_iterator it;
    6969    for (it = _allObs.begin(); it != _allObs.end(); it++) {
    7070      if (it->second->_biasJumpCounter > jmp) {
     
    118118  };
    119119
    120   t_prn                       _prn;
    121   bncTime                     _time;
    122   int                         _channel;
    123   std::map<t_obsType, t_obs*> _allObs;
    124   bool                        _valid;
    125   t_obs*                      _validObs1;
    126   t_obs*                      _validObs2;
    127   double                      _f1;
    128   double                      _f2;
    129   double                      _rawC1;
    130   double                      _rawC2;
    131   double                      _rawL1;
    132   double                      _rawL2;
    133   ColumnVector                _xcSat;
    134   ColumnVector                _vvSat;
    135   t_model                     _model;
    136   bool                        _outlier;
    137   std::map<t_lc::type, double> _res;
     120  t_prn                          _prn;
     121  bncTime                        _time;
     122  int                            _channel;
     123  std::map<t_obsType, t_pppObs*> _allObs;
     124  bool                           _valid;
     125  t_pppObs*                      _validObs1;
     126  t_pppObs*                      _validObs2;
     127  double                         _f1;
     128  double                         _f2;
     129  double                         _rawC1;
     130  double                         _rawC2;
     131  double                         _rawL1;
     132  double                         _rawL2;
     133  ColumnVector                   _xcSat;
     134  ColumnVector                   _vvSat;
     135  t_model                        _model;
     136  bool                           _outlier;
     137  std::map<t_lc::type, double>   _res;
    138138};
    139139
Note: See TracChangeset for help on using the changeset viewer.