Changeset 2204 in ntrip


Ignore:
Timestamp:
Jan 6, 2010, 2:03:23 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigureppp.cpp

    r2201 r2204  
    100100  }
    101101
    102   if (_pos.size() > MAXNUMPOS) {
    103     delete _pos[0];
    104     _pos.pop_front();
     102  QMutableVectorIterator<pppPos*> it(_pos);
     103  while (it.hasNext()) {
     104    pppPos* pp = it.next();
     105    if ( (time - pp->time) > _tRange ) {
     106      delete pp;
     107      it.remove();
     108    }
    105109  }
    106110
     
    139143  // -----------------------------------------------------
    140144  if (_pos.size() > 1) {
    141     _tRange = MAXNUMPOS;
    142145    _tMin   = _pos[0]->time.gpssec();
    143146
     
    169172    }
    170173
    171     if (_neuMax > 0.0 && _tRange > 0.0) {
     174    if (_neuMax > 0.0) {
    172175
    173176      if (_neuMax < 0.15) {
  • trunk/BNC/bncfigureppp.h

    r2177 r2204  
    4343
    4444 private:
    45   const static int MAXNUMPOS = 300;
     45  const static double _tRange = 300;
    4646
    4747  class pppPos {
     
    5757  bncTime          _startTime;
    5858  double           _neuMax;
    59   double           _tRange;
    6059  double           _tMin;
    6160  int              _width;
Note: See TracChangeset for help on using the changeset viewer.