Ignore:
Timestamp:
Jul 13, 2018, 1:14:56 PM (21 months ago)
Author:
stuerze
Message:

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

File:
1 edited

Legend:

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

    r8273 r8418  
    5353#include "bnccore.h"
    5454#include "bncutils.h"
     55#include "bnctime.h"
    5556#include "bnczerodecoder.h"
    5657#include "bncnetqueryv0.h"
     
    620621        if (!_rawFile) {
    621622          QString prn(obs._prn.toString().c_str());
    622           long iSec = long(floor(obs._time.gpssec() + 0.5));
    623           long obsTime = obs._time.gpsw() * 7 * 24 * 3600 + iSec;
    624           QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn);
     623          bncTime obsTime = obs._time;
     624          QMap<QString, bncTime>::const_iterator it = _prnLastEpo.find(prn);
    625625          if (it != _prnLastEpo.end()) {
    626             long oldTime = it.value();
     626            bncTime oldTime = it.value();
    627627            if (obsTime < oldTime) {
    628               emit(newMessage(_staID + ": old observation " + prn.toAscii(),
    629                   false));
     628              emit(newMessage(_staID + ": old observation " + prn.toLatin1(), false));
    630629              continue;
    631630            } else if (obsTime == oldTime) {
    632               emit(newMessage(
    633                   _staID + ": observation coming more than once "
    634                       + prn.toAscii(), false));
     631              emit(newMessage(_staID + ": observation coming more than once "
     632                              + prn.toLatin1(), false));
    635633              continue;
    636634            }
     
    638636          _prnLastEpo[prn] = obsTime;
    639637        }
     638
    640639
    641640        decoder()->dumpRinexEpoch(obs, _format);
Note: See TracChangeset for help on using the changeset viewer.