- Timestamp:
- Nov 11, 2020, 11:15:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r9202 r9240 259 259 } 260 260 261 // Check consistency with older ephemeri des262 // -------------------------------------- --261 // Check consistency with older ephemeris 262 // -------------------------------------- 263 263 const double MAXDIFF = 1000.0; 264 const double MINDIFF = 1.0; 264 265 QString prn = QString(eph->prn().toInternalString().c_str()); 265 266 t_eph* ephL = ephLast(prn); … … 276 277 double diffC = fabs(xc(4) - xcL(4)) * t_CST::c; 277 278 278 // some lines to allow update of ephemeris data sets after outage279 // some lines to allow update of ephemeris data sets after an outage 279 280 // update interval: 2h, 280 281 if (eph->type() == t_eph::GPS && dt > 2*3600) { … … 315 316 if (diff < MAXDIFF && diffC < MAXDIFF) { 316 317 if (dt != 0.0) { 317 eph->setCheckState(t_eph::ok); 318 ephL->setCheckState(t_eph::ok); 318 if (diff < MINDIFF && diffC < MINDIFF && 319 ephL->checkState() == t_eph::ok) { 320 // to prevent the same data sets with different TOC values 321 eph->setCheckState(t_eph::bad); 322 } 323 else { 324 eph->setCheckState(t_eph::ok); 325 ephL->setCheckState(t_eph::ok); 326 } 319 327 } 320 328 }
Note:
See TracChangeset
for help on using the changeset viewer.