Changeset 5834 in ntrip for trunk


Ignore:
Timestamp:
Aug 6, 2014, 3:14:13 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppThread.cpp

    r5833 r5834  
    4848#include "pppThread.h"
    4949#include "bnccore.h"
     50#include "bncephuser.h"
    5051
    5152using namespace BNC_PPP;
     
    235236  QMutexLocker locker(&_mutex);
    236237
    237   QStringListIterator it(corrList);
     238  if (_opt->_corrMount.empty()) {
     239    return;
     240  }
     241
     242  // Check the Mountpoint (source of corrections)
     243  // --------------------------------------------
     244  QMutableListIterator<QString> itm(corrList);
     245  while (itm.hasNext()) {
     246    QStringList hlp = itm.next().split(" ");
     247    if (hlp.size() > 0) {
     248      QString mountpoint = hlp[hlp.size()-1];
     249      if (mountpoint != QString(_opt->_corrMount.c_str())) {
     250        itm.remove();     
     251      }
     252    }
     253  }
     254
     255  if (corrList.size() == 0) {
     256    return;
     257  }
     258
     259  QListIterator<QString> it(corrList);
    238260  while (it.hasNext()) {
    239     it.next();
     261    QString line = it.next();
     262
     263    QTextStream in(&line);
     264    int     messageType;
     265    int     updateInterval;
     266    int     GPSweek;
     267    double  GPSweeks;
     268    QString prn;
     269    in >> messageType >> updateInterval >> GPSweek >> GPSweeks >> prn;
     270
     271    if ( t_corr::relevantMessageType(messageType) ) {
     272      t_corr corr;
     273      corr.readLine(line);
     274    }
     275    else if ( messageType == BTYPE_GPS || messageType == BTYPE_GLONASS ) {
     276      t_bias bias;
     277      bias.readLine(line);
     278    }
    240279  }
    241280
Note: See TracChangeset for help on using the changeset viewer.