Changeset 9260 in ntrip


Ignore:
Timestamp:
Nov 18, 2020, 10:03:51 AM (10 days ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r9245 r9260  
    314314    }
    315315
    316     if (diff < MAXDIFF && diffC < MAXDIFF) {
     316    if (diff < MAXDIFF || diffC < MAXDIFF) {
    317317      if (dt != 0.0) {
    318         if (diff < MINDIFF && diffC < MINDIFF &&
    319             ephL->checkState() == t_eph::ok) {
     318        if (diff < MINDIFF && diffC < MINDIFF && ephL->checkState() == t_eph::ok) {
    320319          // to prevent the same data sets with different TOC values
    321320          eph->setCheckState(t_eph::bad);
  • trunk/BNC/src/combination/bnccomb.cpp

    r9259 r9260  
    470470  ColumnVector dV = newVV           - oldVV;
    471471  double       dC = newXC(4)        - oldXC(4);
     472
     473  // small check
     474  // -----------
     475  const double MAXDIFF = 1000.0;
     476  double diff  = dX.NormFrobenius();
     477  double diffC = dC * t_CST::c ;
     478  if (diff  > MAXDIFF ||
     479      diffC > MAXDIFF) {
     480    return;
     481  }
    472482
    473483  ColumnVector dRAO(3);
Note: See TracChangeset for help on using the changeset viewer.