Changeset 8673 in ntrip for trunk/BNC/src/latencychecker.cpp


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

check with respect to wrong observation epochs is improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.