Changeset 8075 in ntrip


Ignore:
Timestamp:
Dec 20, 2016, 5:11:03 PM (12 months ago)
Author:
stuerze
Message:

minor changes within the ephemeris check

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncephuser.cpp

    r7861 r8075  
    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.