Changeset 3027 in ntrip for trunk/BNC/combination/bnccomb.cpp


Ignore:
Timestamp:
Feb 24, 2011, 12:32:17 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3025 r3027  
    2424#include "bncmodel.h"
    2525#include "bncutils.h"
     26#include "bncpppclient.h"
    2627
    2728using namespace std;
     
    336337  }
    337338
    338   // Emit new Corrections
    339   // --------------------
    340   co.messageType = COTYPE_GPSCOMBINED;
    341   QStringList asciiLines =
    342     RTCM3coDecoder::corrsToASCIIlines(resTime.gpsw(), resTime.gpssec(), co, 0);
    343 
    344   long coTime = resTime.gpsw() * 7*24*3600 + long(floor(resTime.gpssec()+0.5));
    345   QStringListIterator il(asciiLines);
    346   while (il.hasNext()) {
    347     QString line = il.next();
    348     emit newCorrLine(line, _caster->mountpoint(), coTime);
     339  // Optionall send new Corrections to PPP client
     340  // --------------------------------------------
     341  bncApp* app = (bncApp*) qApp;
     342  if (app->_bncPPPclient) {
     343    QStringList corrLines;
     344    co.messageType = COTYPE_GPSCOMBINED;
     345    QStringListIterator il(RTCM3coDecoder::corrsToASCIIlines(resTime.gpsw(),
     346                                                  resTime.gpssec(), co, 0));
     347    while (il.hasNext()) {
     348      QString line = il.next() + " " + _caster->mountpoint();
     349      corrLines << line;
     350    }
     351
     352    app->_bncPPPclient->slotNewCorrections(corrLines);
    349353  }
    350354}
Note: See TracChangeset for help on using the changeset viewer.