Changeset 8074 in ntrip


Ignore:
Timestamp:
Dec 20, 2016, 5:06:28 PM (10 months ago)
Author:
weber
Message:

minor changes withC the ephemeris check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncephuser.cpp

    r7861 r8074  
    199199  const double MINDIST = 2.e7;
    200200  const double MAXDIST = 6.e7;
    201   if (rr < MINDIST || rr > MAXDIST) {
     201  if (rr < MINDIST || rr > MAXDIST || isnan(rr)) {
    202202    eph->setCheckState(t_eph::bad);
    203203    return;
     
    254254    ephL->getCrd(eph->TOC(), xcL, vvL, false);
    255255
    256     double dt    = eph->TOC() - ephL->TOC();
     256    double dt    = fabs(eph->TOC() - ephL->TOC());
    257257    double diff  = (xc.Rows(1,3) - xcL.Rows(1,3)).norm_Frobenius();
    258258    double diffC = fabs(xc(4) - xcL(4)) * t_CST::c;
Note: See TracChangeset for help on using the changeset viewer.