Changeset 2142 in ntrip


Ignore:
Timestamp:
Dec 31, 2009, 10:39:30 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncfigureppp.cpp

    r2140 r2142  
    6161//
    6262////////////////////////////////////////////////////////////////////////////
    63 void bncFigurePPP::slotNewPosition(const double* xyz) {
     63void bncFigurePPP::slotNewPosition(const bncTime& time, const double* xyz) {
    6464
    6565  const static int MAXNUMPOS = 1000;
     
    6767  QMutexLocker locker(&_mutex);
    6868
    69   double* newPos = new double [3];
     69  pppPos* newPos = new pppPos;
    7070
    71   newPos[0] = xyz[0];
    72   newPos[1] = xyz[1];
    73   newPos[2] = xyz[2];
     71  newPos->time   = time;
     72  newPos->xyz[0] = xyz[0];
     73  newPos->xyz[1] = xyz[1];
     74  newPos->xyz[2] = xyz[2];
    7475
    7576  _pos.push_back(newPos);
  • trunk/BNC/bncfigureppp.h

    r2140 r2142  
    2727
    2828#include <QtGui>
     29#include "bnctime.h"
    2930
    3031class bncFigurePPP : public QWidget {
     
    3536
    3637 public slots:
    37   void slotNewPosition(const double* xyz);
     38  void slotNewPosition(const bncTime& time, const double* xyz);
    3839
    3940 protected:
     
    4142
    4243 private:
     44  class pppPos {
     45   public:
     46    bncTime time;
     47    double  xyz[3];
     48  };
     49
    4350  QMutex           _mutex;
    44   QVector<double*> _pos;
     51  QVector<pppPos*> _pos;
    4552};
    4653
  • trunk/BNC/bncgetthread.cpp

    r2141 r2142  
    288288  if (settings.value("pppMount").toString() == _staID) {
    289289    _PPPclient = new bncPPPclient(_staID);
    290     connect(_PPPclient, SIGNAL(newPosition(const double*)),
    291             this, SIGNAL(newPosition(const double*)));
     290    connect(_PPPclient, SIGNAL(newPosition(const bncTime&, const double*)),
     291            this, SIGNAL(newPosition(const bncTime&, const double*)));
    292292  }
    293293
  • trunk/BNC/bncgetthread.h

    r2141 r2142  
    3535#include "bncconst.h"
    3636#include "bncnetquery.h"
     37#include "bnctime.h"
    3738
    3839class bncRinex;
     
    8182   void newMessage(QByteArray msg, bool showOnScreen);
    8283   void getThreadFinished(QByteArray staID);
    83    void newPosition(const double*);
     84   void newPosition(const bncTime& time, const double*);
    8485
    8586 protected:
  • trunk/BNC/bncpppclient.h

    r2123 r2142  
    9292  void slotNewCorrections(QList<QString> corrList);
    9393
     94 signals:
     95   void newPosition(const bncTime& time, const double*);
     96
    9497 private:
    9598  t_irc getSatPos(const bncTime& tt, const QString& prn,
  • trunk/BNC/bncwindow.cpp

    r2141 r2142  
    12221222        connect(thread, SIGNAL(newLatency(QByteArray, double)),
    12231223                _bncFigureLate, SLOT(slotNewLatency(QByteArray, double)));
    1224         disconnect(thread, SIGNAL(newPosition(const double*)),
    1225                    _bncFigurePPP, SLOT(slotNewPosition(const double*)));
    1226         connect(thread, SIGNAL(newPosition(const double*)),
    1227                 _bncFigurePPP, SLOT(slotNewPosition(const double*)));
     1224        disconnect(thread, SIGNAL(newPosition(const bncTime&, const double*)),
     1225                   _bncFigurePPP, SLOT(slotNewPosition(const bncTime&, const double*)));
     1226        connect(thread, SIGNAL(newPosition(const bncTime&, const double*)),
     1227                _bncFigurePPP, SLOT(slotNewPosition(const bncTime&, const double*)));
    12281228        break;
    12291229      }
Note: See TracChangeset for help on using the changeset viewer.