Changeset 3588 in ntrip


Ignore:
Timestamp:
Jan 19, 2012, 5:44:10 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3556 r3588  
    262262    _buffer.remove(epoTime);
    263263  }
     264  QMapIterator<QString, cmbCorr*> itOrbCorr(_orbitCorrs);
     265  while (itOrbCorr.hasNext()) {
     266    itOrbCorr.next();
     267    delete itOrbCorr.value();
     268  }
    264269}
    265270
     
    302307  }
    303308
     309  // Save Orbit-Only Corrections
     310  // ---------------------------
     311  if (newCorr->raoSet && !newCorr->dClkSet) {
     312    QString corrID = newCorr->ID();
     313    if (_orbitCorrs.find(corrID) != _orbitCorrs.end()) {
     314      delete _orbitCorrs[corrID];
     315    }
     316    _orbitCorrs[corrID] = new cmbCorr(*newCorr);
     317  }
     318
    304319  // Check Modulo Time
    305320  // -----------------
     
    314329    delete newCorr;
    315330    return;
     331  }
     332
     333  // Merge with saved orbit correction
     334  // ---------------------------------
     335  if (newCorr->dClkSet && !newCorr->raoSet) {
     336    QString corrID = newCorr->ID();
     337    if (_orbitCorrs.find(corrID) != _orbitCorrs.end()) {
     338      mergeOrbitCorr(_orbitCorrs[corrID], newCorr);
     339    }
    316340  }
    317341
     
    362386  }
    363387  if (existingCorr) {
    364     delete newCorr;
     388    delete newCorr; newCorr = 0;
    365389    existingCorr->readLine(line); // merge (multiple messages)
     390   
    366391  }
    367392  else {
     
    11191144  return success;
    11201145}
     1146
     1147//
     1148////////////////////////////////////////////////////////////////////////////
     1149t_irc bncComb::mergeOrbitCorr(const cmbCorr* orbitCorr, cmbCorr* clkCorr) {
     1150
     1151
     1152  return success;
     1153}
  • trunk/BNC/combination/bnccomb.h

    r3556 r3588  
    6262    QString      acName;
    6363    ColumnVector diffRao;
     64    QString ID() {return acName + "_" + prn;}
    6465  };
    6566
     
    9293  QVector<cmbCorr*>& corrs() {return _buffer[_resTime].corrs;}
    9394
     95  t_irc mergeOrbitCorr(const cmbCorr* orbitCorr, cmbCorr* clkCorr);
     96
    9497  QList<cmbAC*>           _ACs;
    9598  bncTime                 _resTime;
     
    105108  e_method                _method;
    106109  bool                    _useGlonass;
     110  QMap<QString, cmbCorr*> _orbitCorrs;
    107111};
    108112
Note: See TracChangeset for help on using the changeset viewer.