Changeset 9192 in ntrip for trunk/BNC/src/bncephuser.cpp


Ignore:
Timestamp:
Oct 31, 2020, 10:12:56 PM (3 years ago)
Author:
stuerze
Message:

some more ephemeris checks are added

File:
1 edited

Legend:

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

    r9059 r9192  
    205205    return;
    206206  }
    207 
    208207  double rr = xc.Rows(1,3).NormFrobenius();
    209 
     208  double rv = vv.NormFrobenius();
    210209  const double MINDIST = 2.e7;
    211210  const double MAXDIST = 6.e7;
    212211  if (rr < MINDIST || rr > MAXDIST || std::isnan(rr)) {
     212    eph->setCheckState(t_eph::bad);
     213    return;
     214  }
     215  if (eph->type() == t_eph::GLONASS && rv < 1.0) {
    213216    eph->setCheckState(t_eph::bad);
    214217    return;
Note: See TracChangeset for help on using the changeset viewer.