Changeset 3027 in ntrip


Ignore:
Timestamp:
Feb 24, 2011, 12:32:17 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncapp.cpp

    r3004 r3027  
    117117    _GLOFreq[ii] = 0;
    118118  }
     119
     120  _bncPPPclient = 0;
    119121}
    120122
  • trunk/BNC/bncapp.h

    r2909 r3027  
    3535
    3636class bncComb;
     37class bncPPPclient;
    3738
    3839class bncApp : public QApplication {
     
    120121    int                 _GLOFreq[PRN_GLONASS_NUM];
    121122    bncComb*            _bncComb;
     123 public:
     124    bncPPPclient*       _bncPPPclient;
    122125};
    123126#endif
  • trunk/BNC/bncgetthread.cpp

    r3003 r3027  
    282282  if (settings.value("pppMount").toString() == _staID) {
    283283    _PPPclient = new bncPPPclient(_staID);
     284    app->_bncPPPclient = _PPPclient;
    284285    qRegisterMetaType<bncTime>("bncTime");
    285286    connect(_PPPclient, SIGNAL(newPosition(bncTime, double, double, double)),
  • 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}
  • trunk/BNC/combination/bnccomb.h

    r3024 r3027  
    3434 signals:
    3535  void newMessage(QByteArray msg, bool showOnScreen);
    36   void newCorrLine(QString line, QString staID, long coTime);
    3736
    3837 private:
Note: See TracChangeset for help on using the changeset viewer.