Changeset 6081 in ntrip for trunk/BNC/src/PPP_free
- Timestamp:
- Sep 7, 2014, 6:16:38 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_free/bncpppclient.cpp
r6080 r6081 285 285 t_irc bncPPPclient::getSatPos(const bncTime& tt, const QString& prn, 286 286 ColumnVector& xc, ColumnVector& vv) { 287 288 const double MAXAGE = 120.0;289 290 287 if (_eph.contains(prn)) { 291 292 if (_opt->useOrbClkCorr() && prn[0] != 'E') { 293 if (_corr.contains(prn)) { 294 t_corr* cc = _corr.value(prn); 295 if (cc->ready() && tt - cc->tClk < MAXAGE) { 296 t_eph* eLast = _eph.value(prn)->last; 297 t_eph* ePrev = _eph.value(prn)->prev; 298 if (eLast && eLast->IOD() == cc->iod) { 299 eLast->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()); 300 return applyCorr(tt, cc, xc, vv); 301 } 302 else if (ePrev && ePrev->IOD() == cc->iod) { 303 ePrev->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()); 304 return applyCorr(tt, cc, xc, vv); 305 } 306 } 307 } 308 } 309 310 else { 311 t_eph* ee = _eph.value(prn)->last; 312 ee->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data()); 288 t_eph* eLast = _eph.value(prn)->last; 289 t_eph* ePrev = _eph.value(prn)->prev; 290 if (eLast && eLast->getCrd(tt, xc, vv, _opt->useOrbClkCorr()) == success) { 313 291 return success; 314 292 } 315 } 316 293 else if (ePrev && ePrev->getCrd(tt, xc, vv, _opt->useOrbClkCorr()) == success) { 294 return success; 295 } 296 } 317 297 return failure; 318 298 }
Note:
See TracChangeset
for help on using the changeset viewer.