Changeset 5742 in ntrip for trunk/BNC/src/PPP


Ignore:
Timestamp:
Aug 2, 2014, 4:23:36 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/options.h

    r5736 r5742  
    1313  t_options();
    1414  ~t_options();
     15  bool dualFreqRequired();
     16  bool useGlonass();
     17  bool xyzAprRoverSet();
     18
    1519  bool         _realTime;
    1620  std::string  _roverName;     
     
    3741  ColumnVector _neuEccRover;
    3842  std::string  _antNameRover; 
    39   int          _minobs;
     43  int          _minObs;
    4044  double       _minEle;
    4145  double       _maxResC1;
  • trunk/BNC/src/PPP/ppp.h

    r5735 r5742  
    33
    44#include <string>
     5
     6#include "bncconst.h"
    57#include "bnctime.h"
     8#include "t_prn.h"
    69
    710namespace BNC {
     
    1417};
    1518
    16 class t_pppOpt {
    17  public:
    18   e_pppMode   _mode;         
    19   std::string _roverName;     
    20   std::string _baseName;     
    21   double      _xyzAprRover[3];     
    22   double      _neuEccRover[3];     
    23   std::string _antNameRover; 
    24   std::string _antexFileName;
    25   int         _logLevel;             
    26   int         _minobs;               
    27   bool        _useGlonass;           
    28 };
    29 
    3019class t_pppOutput {
    3120 public:
     
    3423  double       _covMatrix[6];
    3524  int          _numSat;       
    36   double       _ambFixRate;
    3725  double       _pDop;         
    3826  std::string  _log;         
     
    4028};
    4129
    42 class t_pppObs  {
     30class t_obs  {
    4331 public:
    4432  std::string _rnxType2ch;
     
    5341  bool        _slip;         
    5442  int         _slipCounter;   
    55 };
    56 
    57 class t_pppSat {
    58  public:
    59   char _system;
    60   int  _number;
     43  int         _biasJumpCounter;
    6144};
    6245
    6346class t_pppSatObs {
    6447 public:
    65   t_pppSat              _satellite;
    66   bncTime               _time;
    67   std::vector<t_pppObs> _obs;
     48  t_prn              _prn;
     49  bncTime            _time;
     50  std::vector<t_obs> _obs;
    6851};
    6952
    70 class t_pppOrbCorr {
     53class t_orbCorr {
    7154 public:
    72   t_pppSat       _satellite;
     55  t_prn          _prn;
    7356  unsigned short _iod;
    7457  bncTime        _time;
     
    7861};
    7962
    80 class t_pppClkCorr {
     63class t_clkCorr {
    8164 public:
    82   t_pppSat       _satellite;
     65  t_prn          _prn;
    8366  unsigned short _iod;
    8467  bncTime        _time;
     
    9073};
    9174
    92 class t_pppBias {
     75class t_bias {
    9376 public:
    9477  std::string _rnxType3ch;
     
    9679};
    9780
    98 class t_pppSatBiases {
     81class t_satBiases {
    9982 public:
    100   t_pppSat                    _satellite;
    101   bncTime                     _time;
    102   int                         _nx;
    103   int                         _jumpCount;
    104   std::vector<t_pppSatBiases> _biases;
     83  t_prn               _prn;
     84  bncTime             _time;
     85  int                 _nx;
     86  int                 _jumpCount;
     87  std::vector<t_bias> _biases;
    10588};
    106 
    107 enum e_roverBase { e_rover, e_base };
    10889
    10990enum e_tropoModel{tropoModel_NO, tropoModel_SAAST, tropoModel_MARINI,
     
    11394               tropoMF_NIELL_WET, tropoMF_HOPF, tropoMF_GMF_DRY,
    11495               tropoMF_GMF_WET, tropoMF_GMF_COMB};
    115 
    116 class t_irc {
    117  public:
    118   enum irc {success = 0, failure};
    119 };
    12096
    12197class t_frequency {
  • trunk/BNC/src/PPP/pppThread.cpp

    r5736 r5742  
    7070  cout << _opt->_roverName << " run" << endl;
    7171
    72   _pppRun = new t_pppRun(_opt);
    73   QThread::exec();
    74 
     72  try {
     73    _pppRun = new t_pppRun(_opt);
     74    QThread::exec();
     75  }
     76  catch (const char* msg) {
     77    cout << msg << endl;
     78  }
    7579  cout << _opt->_roverName << " exit" << endl;
    7680}
     
    8084t_pppRun::t_pppRun(const t_options* opt) {
    8185  _opt = opt;
    82 
    83   if (BNC_CORE->caster()) {
     86  if (_opt->_realTime) {
    8487    connect(BNC_CORE->caster(), SIGNAL(newObs(QByteArray, QList<t_obs>)),
    8588            this, SLOT(slotNewObs(QByteArray, QList<t_obs>)));
     
    9699    connect(BNC_CORE, SIGNAL(newCorrections(QStringList)),
    97100            this, SLOT(slotNewCorrections(QStringList)));
     101
     102    _pppClient = new t_pppClient();
     103  }
     104  else {
     105    cout << "t_pppRun: post-processing not yet implemented" << endl;
    98106  }
    99107}
     
    102110////////////////////////////////////////////////////////////////////////////
    103111t_pppRun::~t_pppRun() {
     112  delete _pppClient;
    104113  cout << "~t_pppRun" << endl;
    105114}
     
    110119  QMutexLocker locker(&_mutex);
    111120  cout << _opt->_roverName << " slotNewEphGPS" << endl;
     121  t_ephGPS eph;
     122  eph.set(&gpseph);
     123  _pppClient->putGPSEphemeris(&eph);
    112124}
    113125
  • trunk/BNC/src/PPP/pppThread.h

    r5738 r5742  
    77#include "GPSDecoder.h"
    88#include "options.h"
     9#include "pppClient.h"
    910
    1011namespace BNC {
     
    2627  QMutex           _mutex;
    2728  const t_options* _opt;
     29  t_pppClient*     _pppClient;
    2830};
    2931
Note: See TracChangeset for help on using the changeset viewer.