Changeset 7861 in ntrip for trunk/BNC/src
- Timestamp:
- Apr 11, 2016, 2:16:46 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r7847 r7861 161 161 162 162 if ((ephOld == 0 || newEph->isNewerThan(ephOld)) && 163 (eph->checkState() != t_eph::bad ||163 (eph->checkState() != t_eph::bad && 164 164 eph->checkState() != t_eph::outdated)) { 165 165 deque<t_eph*>& qq = _eph[prn]; … … 248 248 QString prn = QString(eph->prn().toInternalString().c_str()); 249 249 t_eph* ephL = ephLast(prn); 250 250 251 if (ephL) { 251 252 ColumnVector xcL(4); … … 253 254 ephL->getCrd(eph->TOC(), xcL, vvL, false); 254 255 255 double dt = eph->TOC() - ephL->TOC(); 256 double diff = (xc.Rows(1,3) - xcL.Rows(1,3)).norm_Frobenius(); 256 double dt = eph->TOC() - ephL->TOC(); 257 double diff = (xc.Rows(1,3) - xcL.Rows(1,3)).norm_Frobenius(); 258 double diffC = fabs(xc(4) - xcL(4)) * t_CST::c; 257 259 258 260 // some lines to allow update of ephemeris data sets after outage … … 282 284 } 283 285 284 if (diff < MAXDIFF ) {286 if (diff < MAXDIFF && diffC < MAXDIFF) { 285 287 if (dt != 0.0) { 286 288 eph->setCheckState(t_eph::ok);
Note:
See TracChangeset
for help on using the changeset viewer.