Changeset 10185 in ntrip for trunk/BNC/src
- Timestamp:
- Aug 28, 2023, 10:23:40 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/pppRun.cpp
r9942 r10185 278 278 } 279 279 280 int currentWeek = 0; 281 double currentSec = 0.0; 282 currentGPSWeeks(currentWeek, currentSec); 283 bncTime currentTime(currentWeek, currentSec); 284 280 285 // Loop over all observations (possible different epochs) 281 286 // ----------------------------------------------------- … … 284 289 const t_satObs& oldObs = it.next(); 285 290 t_satObs* newObs = new t_satObs(oldObs); 291 292 // Check regarding current time 293 // ---------------------------- 294 if ((newObs->_time >= currentTime) || // future time stamp 295 (currentTime - newObs->_time) > 60.0) { // very old data sets 296 delete newObs; 297 continue; 298 } 286 299 287 300 // Find the corresponding data epoch or create a new one … … 315 328 // Make sure the buffer does not grow beyond any limit 316 329 // --------------------------------------------------- 317 const unsigned MAX_EPODATA_SIZE = 120;330 const unsigned MAX_EPODATA_SIZE = 65; 318 331 if (_epoData.size() > MAX_EPODATA_SIZE) { 319 332 delete _epoData.front(); … … 338 351 (_epoData.front()->_time - _lastClkCorrTime) < _opt->_corrWaitTime) { 339 352 340 if (_opt->_corrWaitTime != 0 && (fabs(_epoData.front()->_time - _lastClkCorrTime) > 60.0)) { 353 if (_opt->_corrWaitTime != 0 && 354 (fabs(_epoData.front()->_time - _lastClkCorrTime) > 60.0)) { 341 355 delete _epoData.front(); 342 356 _epoData.pop_front();
Note:
See TracChangeset
for help on using the changeset viewer.