Changeset 8669 in ntrip for branches/BNC_2.12/src


Ignore:
Timestamp:
Apr 10, 2019, 3:30:46 PM (5 years ago)
Author:
stuerze
Message:

check with respect to wrong observation epochs is improved

Location:
branches/BNC_2.12/src
Files:
2 edited

Legend:

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

    r8645 r8669  
    256256  currentGPSWeeks(week, sec);
    257257  bncTime currTime(week, sec);
    258 
    259   if (fabs(currTime - obsTime) > maxDt) {
     258  if (((currTime - obsTime) < 0.0) ||
     259      (fabs(currTime - obsTime) > maxDt)) {
    260260    return true;
    261261  }
  • branches/BNC_2.12/src/latencychecker.cpp

    r8375 r8669  
    321321
    322322  if (_miscIntr > 0 ) {
    323     t_latency& l = _lObs; 
     323    t_latency& l = _lObs;
    324324    l._type =  "Observations";
    325325    QListIterator<t_satObs> it(obsList);
     
    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) {
    331337        if (l._newSec % (_miscIntr * 10) < l._oldSec % (_miscIntr * 10)) {
    332  
    333338          if (l._numLat > 0) {
    334339            if (l._meanDiff > 0.0) {
     
    358363              }
    359364            }
    360           }
    361           l._meanDiff  = l._diffSec / l._numLat;
    362           l.init();
     365            l._meanDiff  = l._diffSec / l._numLat;
     366            l.init();
     367          }
    363368        }
    364369        if (l._followSec) {
    365370          l._diffSec += l._newSec - l._oldSec;
    366           if (l._meanDiff>0.) {
     371          if (l._meanDiff > 0.0) {
    367372            if (l._newSec - l._oldSec > 1.5 * l._meanDiff) {
    368373              l._numGaps += 1;
     
    486491
    487492      // Compute the observations latency
    488       // --------------------------------     
     493      // --------------------------------
    489494      int week;
    490495      double sec;
Note: See TracChangeset for help on using the changeset viewer.