Changeset 3753 in ntrip
- Timestamp:
- Mar 30, 2012, 6:38:05 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r3751 r3753 328 328 } 329 329 330 //// beg test 331 QMapIterator<QString, t_corr*> ic(_corr); 332 while (ic.hasNext()) { 333 ic.next(); 334 const t_corr* corr = ic.value(); 335 cout.setf(ios::fixed); 336 cout << corr->prn.toAscii().data() << " " 337 << setw(3) << corr->iod << " " 338 << setw(8) << setprecision(3) << corr->dClk * t_CST::c << " " 339 << corr->tRao.datestr() << " " << corr->tRao.timestr() << " " 340 << corr->tClk.datestr() << " " << corr->tClk.timestr() << endl; 341 } 342 //// end test 330 343 } 331 344 -
trunk/BNC/rinex/bncpostprocess.cpp
r3752 r3753 132 132 ++nEpo; 133 133 134 cout << "process " << epo->tt.datestr() << " " 135 << epo->tt.timestr() << endl; 136 134 137 // Get Corrections 135 138 // --------------- -
trunk/BNC/rinex/rnxnavfile.cpp
r3748 r3753 166 166 bncTime ephTime(eph->GPSweek(), eph->GPSweeks()); 167 167 double dt = ephTime - tt; 168 if (dt < 4*3600.0) {168 if (dt < 2*3600.0) { 169 169 _ephs.pop(); 170 170 return eph; -
trunk/BNC/upload/bncrtnetuploadcaster.cpp
r3591 r3753 46 46 int sampl = settings.value("uploadSampl").toInt(); 47 47 _samplOrb = settings.value("uploadSamplOrb").toDouble(); 48 if (_samplOrb == 0.0) { 49 _usedEph = 0; 50 } 51 else { 52 _usedEph = new QMap<QString, t_eph*>; 53 } 48 54 49 55 // Raw Output … … 190 196 delete _sp3; 191 197 delete _ephUser; 198 delete _usedEph; 192 199 } 193 200 … … 267 274 } 268 275 276 t_eph* eph = 0; 269 277 const bncEphUser::t_ephPair* ephPair = _ephUser->ephPair(prn); 270 278 if (ephPair) { 271 t_eph* eph = ephPair->last; 272 273 // receptDateTime() not (yet?) defined 274 // if (ephPair->prev && 275 // eph->receptDateTime().secsTo(QDateTime::currentDateTime()) < 60) { 276 // eph = ephPair->prev; 277 // } 279 280 // Make sure the clock messages refer to same IOD as orbit messages 281 // ---------------------------------------------------------------- 282 eph = ephPair->last; 283 if (_usedEph) { 284 if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) { 285 (*_usedEph)[prn] = eph; 286 } 287 else { 288 eph = 0; 289 if (_usedEph->contains(prn)) { 290 t_eph* usedEph = _usedEph->value(prn); 291 if (usedEph == ephPair->last) { 292 eph = ephPair->last; 293 } 294 else if (usedEph == ephPair->prev) { 295 eph = ephPair->prev; 296 } 297 } 298 } 299 } 300 301 // receptDateTime() not (yet?) defined 302 // if (ephPair->prev && 303 // eph->receptDateTime().secsTo(QDateTime::currentDateTime()) < 60) { 304 // eph = ephPair->prev; 305 // } 306 } 307 308 if (eph) { 278 309 279 310 in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5) -
trunk/BNC/upload/bncrtnetuploadcaster.h
r3587 r3753 59 59 bncClockRinex* _rnx; 60 60 bncSP3* _sp3; 61 QMap<QString, t_eph*>* _usedEph; 61 62 }; 62 63
Note:
See TracChangeset
for help on using the changeset viewer.