Changeset 8417 in ntrip for trunk/BNC/src/bncgetthread.cpp


Ignore:
Timestamp:
Jul 13, 2018, 1:14:18 PM (6 years ago)
Author:
stuerze
Message:

some changes to allow 10 Hz observation data real-time processing

File:
1 edited

Legend:

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

    r8271 r8417  
    5656#include "bnccore.h"
    5757#include "bncutils.h"
     58#include "bnctime.h"
    5859#include "bnczerodecoder.h"
    5960#include "bncnetqueryv0.h"
     
    624625        if (!_rawFile) {
    625626          QString prn(obs._prn.toString().c_str());
    626           long iSec = long(floor(obs._time.gpssec() + 0.5));
    627           long obsTime = obs._time.gpsw() * 7 * 24 * 3600 + iSec;
    628           QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn);
     627          bncTime obsTime = obs._time;
     628          QMap<QString, bncTime>::const_iterator it = _prnLastEpo.find(prn);
    629629          if (it != _prnLastEpo.end()) {
    630             long oldTime = it.value();
     630            bncTime oldTime = it.value();
    631631            if (obsTime < oldTime) {
    632               emit(newMessage(_staID + ": old observation " + prn.toLatin1(),
    633                   false));
     632              emit(newMessage(_staID + ": old observation " + prn.toLatin1(), false));
    634633              continue;
    635634            } else if (obsTime == oldTime) {
    636               emit(newMessage(
    637                   _staID + ": observation coming more than once "
    638                       + prn.toLatin1(), false));
     635              emit(newMessage(_staID + ": observation coming more than once "
     636                              + prn.toLatin1(), false));
    639637              continue;
    640638            }
Note: See TracChangeset for help on using the changeset viewer.