Changeset 2204 in ntrip
- Timestamp:
- Jan 6, 2010, 2:03:23 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncfigureppp.cpp
r2201 r2204 100 100 } 101 101 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 } 105 109 } 106 110 … … 139 143 // ----------------------------------------------------- 140 144 if (_pos.size() > 1) { 141 _tRange = MAXNUMPOS;142 145 _tMin = _pos[0]->time.gpssec(); 143 146 … … 169 172 } 170 173 171 if (_neuMax > 0.0 && _tRange > 0.0) {174 if (_neuMax > 0.0) { 172 175 173 176 if (_neuMax < 0.15) { -
trunk/BNC/bncfigureppp.h
r2177 r2204 43 43 44 44 private: 45 const static int MAXNUMPOS= 300;45 const static double _tRange = 300; 46 46 47 47 class pppPos { … … 57 57 bncTime _startTime; 58 58 double _neuMax; 59 double _tRange;60 59 double _tMin; 61 60 int _width;
Note:
See TracChangeset
for help on using the changeset viewer.