Changeset 3300 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jun 17, 2011, 12:49:17 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r3206 r3300  
    442442      QListIterator<t_obs> it(_decoder->_obsList);
    443443      bool firstObs = true;
     444      QList<QString> prnList;
    444445      while (it.hasNext()) {
    445446        const t_obs& obs = it.next();
     447
     448        // Check observations comming twice (e.g. KOUR0 Problem)
     449        // -----------------------------------------------------
     450        QString prn = QString("%1%2").arg(obs.satSys)
     451                                     .arg(obs.satNum, 2, 10, QChar('0'));
     452        if (prnList.indexOf(prn) == -1) {
     453          prnList << prn;
     454        }
     455        else {
     456          emit( newMessage(_staID +
     457             ": observation comming more than once " + prn.toAscii(), false) );
     458          continue;
     459        }
    446460
    447461        // Check observation epoch
Note: See TracChangeset for help on using the changeset viewer.