Changeset 3535 in ntrip for trunk/BNC/bncgetthread.cpp


Ignore:
Timestamp:
Dec 16, 2011, 7:36:05 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r3534 r3535  
    503503        // Check observations coming twice (e.g. KOUR0 Problem)
    504504        // ----------------------------------------------------
    505         QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn);
    506         if (it != _prnLastEpo.end()) {
    507           long oldTime = it.value();
    508           if      (obsTime <  oldTime) {
    509             emit( newMessage(_staID +
    510                ": old observation " + prn.toAscii(), false));
    511             continue;
     505        if (!_rawFile) {
     506          QMap<QString, long>::const_iterator it = _prnLastEpo.find(prn);
     507          if (it != _prnLastEpo.end()) {
     508            long oldTime = it.value();
     509            if      (obsTime <  oldTime) {
     510              emit( newMessage(_staID +
     511                 ": old observation " + prn.toAscii(), false));
     512              continue;
     513            }
     514            else if (obsTime == oldTime) {
     515              emit( newMessage(_staID +
     516                 ": observation coming more than once " + prn.toAscii(), false));
     517              continue;
     518            }
    512519          }
    513           else if (obsTime == oldTime) {
    514             emit( newMessage(_staID +
    515                ": observation coming more than once " + prn.toAscii(), false));
    516             continue;
    517           }
    518         }
    519         _prnLastEpo[prn] = obsTime;
     520          _prnLastEpo[prn] = obsTime;
     521        }
    520522
    521523        decoder()->dumpRinexEpoch(obs, _format);
     
    524526        // ----------
    525527#ifndef MLS_SOFTWARE
    526         if (_PPPclient) {
     528        if (_PPPclient && _staID == _PPPclient->staID()) {
    527529          _PPPclient->putNewObs(obs);
    528530        }
Note: See TracChangeset for help on using the changeset viewer.