Changeset 3748 in ntrip
- Timestamp:
- Mar 30, 2012, 11:21:04 AM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/bncpostprocess.cpp
r3721 r3748 124 124 } 125 125 126 // Read Ephemerides127 // ----------------128 t_eph* eph = 0;129 while ( (eph = _rnxNavFile->getNextEph()) != 0 ) {130 if (_pppClient->putNewEph(eph) != success) {131 delete eph; eph = 0;132 }133 }134 135 126 // Read/Process Observations 136 127 // ------------------------- … … 140 131 ++nEpo; 141 132 133 // Get Corrections 134 // --------------- 142 135 if (_corrFile) { 143 136 _corrFile->syncRead(epo->tt); 137 } 138 139 // Get Ephemerides 140 // ---------------- 141 t_eph* eph = 0; 142 while ( (eph = _rnxNavFile->getNextEph(epo->tt)) != 0 ) { 143 if (_pppClient->putNewEph(eph) != success) { 144 delete eph; eph = 0; 145 } 144 146 } 145 147 -
trunk/BNC/rinex/rnxnavfile.cpp
r3747 r3748 161 161 // Read Next Ephemeris 162 162 //////////////////////////////////////////////////////////////////////////// 163 t_eph* t_rnxNavFile::getNextEph() { 164 if(!_ephs.empty()) {163 t_eph* t_rnxNavFile::getNextEph(const bncTime& tt) { 164 while (!_ephs.empty()) { 165 165 t_eph* eph = _ephs.front(); 166 _ephs.pop(); 167 return eph; 166 bncTime ephTime(eph->GPSweek(), eph->GPSweeks()); 167 double dt = ephTime - tt; 168 if (dt < 4*3600.0) { 169 _ephs.pop(); 170 return eph; 171 } 172 else { 173 return 0; 174 } 168 175 } 169 176 return 0; -
trunk/BNC/rinex/rnxnavfile.h
r3746 r3748 29 29 #include <QtCore> 30 30 #include "bncconst.h" 31 #include "bnctime.h" 31 32 32 33 class t_pppOpt; … … 51 52 t_rnxNavFile(QString fileName); 52 53 ~t_rnxNavFile(); 53 t_eph* getNextEph(); 54 t_eph* getNextEph(const bncTime& tt); 54 55 float version() const {return _header.version();} 55 56 bool glonass() const {return _header.glonass();}
Note:
See TracChangeset
for help on using the changeset viewer.