Changeset 8673 in ntrip


Ignore:
Timestamp:
Apr 10, 2019, 3:40:43 PM (6 years ago)
Author:
stuerze
Message:

check with respect to wrong observation epochs is improved

Location:
trunk/BNC/src
Files:
2 edited

Legend:

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

    r8646 r8673  
    257257  bncTime currTime(week, sec);
    258258
    259   if (fabs(currTime - obsTime) > maxDt) {
     259  if (((currTime - obsTime) < 0.0) ||
     260      (fabs(currTime - obsTime) > maxDt)) {
    260261    return true;
    261262  }
  • trunk/BNC/src/latencychecker.cpp

    r8374 r8673  
    327327      const t_satObs& obs = it.next();
    328328      bool wrongObservationEpoch = checkForWrongObsEpoch(obs._time);
     329      if (wrongObservationEpoch) {
     330        emit( newMessage(QString("%1: Wrong observation epoch from %3 ")
     331            .arg(_staID.data())
     332            .arg(obs._prn.toString().data())
     333            .toAscii(), true) );
     334      }
    329335      l._newSec = static_cast<int>(nint(obs._time.gpssec()*10));
    330336      if (l._newSec > l._oldSec && !wrongObservationEpoch) {
     
    357363              }
    358364            }
    359           }
    360           l._meanDiff  = l._diffSec / l._numLat;
    361           l.init();
     365            l._meanDiff  = l._diffSec / l._numLat;
     366            l.init();
     367          }
    362368        }
    363369        if (l._followSec) {
    364370          l._diffSec += l._newSec - l._oldSec;
    365           if (l._meanDiff>0.) {
     371          if (l._meanDiff > 0.0) {
    366372            if (l._newSec - l._oldSec > 1.5 * l._meanDiff) {
    367373              l._numGaps += 1;
Note: See TracChangeset for help on using the changeset viewer.