Changeset 2809 in ntrip


Ignore:
Timestamp:
Dec 18, 2010, 12:32:44 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2808 r2809  
    381381    QString prn;
    382382    in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn;
     383
    383384    if ( messageType == COTYPE_GPSCOMBINED     ||
    384385         messageType == COTYPE_GLONASSCOMBINED ||
     
    398399
    399400      cc->tt.set(GPSweek, GPSweeks);
     401      _corr_tt.set(GPSweek, GPSweeks);
    400402
    401403      if      ( messageType == COTYPE_GPSCOMBINED    ||
     
    629631////////////////////////////////////////////////////////////////////////////
    630632void bncPPPclient::processEpochs() {
    631   processFrontEpoch();
    632   delete _epoData.front();
    633   _epoData.pop();
    634 }
     633
     634  double maxDt = 0.0;
     635  if (!_pppMode) {
     636    maxDt = 0.0;
     637  }
     638
     639  while (!_epoData.empty()) {
     640    t_epoData* frontEpoData = _epoData.front();
     641
     642    // No corrections yet, skip the epoch
     643    // ----------------------------------
     644    if (maxDt != 0.0 && !_corr_tt.valid()) {
     645      delete _epoData.front();
     646      _epoData.pop();
     647      continue;
     648    }
     649
     650    if (maxDt == 0 ||
     651         (frontEpoData->tt - _corr_tt) < maxDt ) {
     652      processFrontEpoch();
     653      delete _epoData.front();
     654      _epoData.pop();
     655    }
     656    else {
     657      return;
     658    }
     659  }
     660}
  • trunk/BNC/bncpppclient.h

    r2808 r2809  
    190190  QMap<QString, t_ephPair*> _eph;
    191191  QMap<QString, t_corr*>  _corr;
     192  bncTime                 _corr_tt;
    192193  QMap<QString, t_bias*>  _bias;
    193194  std::queue<t_epoData*>  _epoData;
  • trunk/BNC/bnctime.h

    r2566 r2809  
    2222  void         civil_time (unsigned int& hour, unsigned int& min,
    2323                           double& sec) const;
    24 
    25   bool   operator!=(const bncTime &time1) const;
    26   double operator-(const bncTime &time1) const;
    27   bncTime operator-(double sec) const;
    28   bncTime operator+(double sec) const;
     24  bool         valid() const {return _mjd != 0 || _sec != 0.0;}
     25  bool         operator!=(const bncTime &time1) const;
     26  double       operator-(const bncTime &time1) const;
     27  bncTime      operator-(double sec) const;
     28  bncTime      operator+(double sec) const;
    2929
    3030  std::string timestr(unsigned numdec = 3, char sep = ':') const; 
Note: See TracChangeset for help on using the changeset viewer.