Changeset 2809 in ntrip
- Timestamp:
- Dec 18, 2010, 12:32:44 PM (14 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/bncpppclient.cpp ¶
r2808 r2809 381 381 QString prn; 382 382 in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn; 383 383 384 if ( messageType == COTYPE_GPSCOMBINED || 384 385 messageType == COTYPE_GLONASSCOMBINED || … … 398 399 399 400 cc->tt.set(GPSweek, GPSweeks); 401 _corr_tt.set(GPSweek, GPSweeks); 400 402 401 403 if ( messageType == COTYPE_GPSCOMBINED || … … 629 631 //////////////////////////////////////////////////////////////////////////// 630 632 void 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 } -
TabularUnified trunk/BNC/bncpppclient.h ¶
r2808 r2809 190 190 QMap<QString, t_ephPair*> _eph; 191 191 QMap<QString, t_corr*> _corr; 192 bncTime _corr_tt; 192 193 QMap<QString, t_bias*> _bias; 193 194 std::queue<t_epoData*> _epoData; -
TabularUnified trunk/BNC/bnctime.h ¶
r2566 r2809 22 22 void civil_time (unsigned int& hour, unsigned int& min, 23 23 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; 29 29 30 30 std::string timestr(unsigned numdec = 3, char sep = ':') const;
Note:
See TracChangeset
for help on using the changeset viewer.