Changeset 6001 in ntrip for trunk


Ignore:
Timestamp:
Aug 18, 2014, 10:00:22 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppRun.cpp

    r6000 r6001  
    585585bool t_pppRun::waitForCorr(const bncTime& epoTime) const {
    586586
    587   if (!_opt->_realTime || opt->_corrMount.empty()) {
     587  if (!_opt->_realTime || _opt->_corrMount.empty()) {
    588588    return false;
    589589  }
    590 
     590  else if (!_lastClkCorrTime.valid()) {
     591    return true;
     592  }
     593  else {
     594    double dt = epoTime - _lastClkCorrTime;
     595    if (dt > 1.0 && dt < _opt->_corrWaitTime) {
     596      return true;
     597    }
     598    else {
     599      return false;
     600    }
     601  }
    591602  return false;
    592603}
Note: See TracChangeset for help on using the changeset viewer.