Changeset 5742 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 2, 2014, 4:23:36 PM (11 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/src/PPP/options.h ¶
r5736 r5742 13 13 t_options(); 14 14 ~t_options(); 15 bool dualFreqRequired(); 16 bool useGlonass(); 17 bool xyzAprRoverSet(); 18 15 19 bool _realTime; 16 20 std::string _roverName; … … 37 41 ColumnVector _neuEccRover; 38 42 std::string _antNameRover; 39 int _min obs;43 int _minObs; 40 44 double _minEle; 41 45 double _maxResC1; -
TabularUnified trunk/BNC/src/PPP/ppp.h ¶
r5735 r5742 3 3 4 4 #include <string> 5 6 #include "bncconst.h" 5 7 #include "bnctime.h" 8 #include "t_prn.h" 6 9 7 10 namespace BNC { … … 14 17 }; 15 18 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 30 19 class t_pppOutput { 31 20 public: … … 34 23 double _covMatrix[6]; 35 24 int _numSat; 36 double _ambFixRate;37 25 double _pDop; 38 26 std::string _log; … … 40 28 }; 41 29 42 class t_ pppObs {30 class t_obs { 43 31 public: 44 32 std::string _rnxType2ch; … … 53 41 bool _slip; 54 42 int _slipCounter; 55 }; 56 57 class t_pppSat { 58 public: 59 char _system; 60 int _number; 43 int _biasJumpCounter; 61 44 }; 62 45 63 46 class t_pppSatObs { 64 47 public: 65 t_p ppSat_satellite;66 bncTime 67 std::vector<t_ pppObs> _obs;48 t_prn _prn; 49 bncTime _time; 50 std::vector<t_obs> _obs; 68 51 }; 69 52 70 class t_ pppOrbCorr {53 class t_orbCorr { 71 54 public: 72 t_p ppSat_satellite;55 t_prn _prn; 73 56 unsigned short _iod; 74 57 bncTime _time; … … 78 61 }; 79 62 80 class t_ pppClkCorr {63 class t_clkCorr { 81 64 public: 82 t_p ppSat_satellite;65 t_prn _prn; 83 66 unsigned short _iod; 84 67 bncTime _time; … … 90 73 }; 91 74 92 class t_ pppBias {75 class t_bias { 93 76 public: 94 77 std::string _rnxType3ch; … … 96 79 }; 97 80 98 class t_ pppSatBiases {81 class t_satBiases { 99 82 public: 100 t_p ppSat_satellite;101 bncTime 102 int 103 int 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; 105 88 }; 106 107 enum e_roverBase { e_rover, e_base };108 89 109 90 enum e_tropoModel{tropoModel_NO, tropoModel_SAAST, tropoModel_MARINI, … … 113 94 tropoMF_NIELL_WET, tropoMF_HOPF, tropoMF_GMF_DRY, 114 95 tropoMF_GMF_WET, tropoMF_GMF_COMB}; 115 116 class t_irc {117 public:118 enum irc {success = 0, failure};119 };120 96 121 97 class t_frequency { -
TabularUnified trunk/BNC/src/PPP/pppThread.cpp ¶
r5736 r5742 70 70 cout << _opt->_roverName << " run" << endl; 71 71 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 } 75 79 cout << _opt->_roverName << " exit" << endl; 76 80 } … … 80 84 t_pppRun::t_pppRun(const t_options* opt) { 81 85 _opt = opt; 82 83 if (BNC_CORE->caster()) { 86 if (_opt->_realTime) { 84 87 connect(BNC_CORE->caster(), SIGNAL(newObs(QByteArray, QList<t_obs>)), 85 88 this, SLOT(slotNewObs(QByteArray, QList<t_obs>))); … … 96 99 connect(BNC_CORE, SIGNAL(newCorrections(QStringList)), 97 100 this, SLOT(slotNewCorrections(QStringList))); 101 102 _pppClient = new t_pppClient(); 103 } 104 else { 105 cout << "t_pppRun: post-processing not yet implemented" << endl; 98 106 } 99 107 } … … 102 110 //////////////////////////////////////////////////////////////////////////// 103 111 t_pppRun::~t_pppRun() { 112 delete _pppClient; 104 113 cout << "~t_pppRun" << endl; 105 114 } … … 110 119 QMutexLocker locker(&_mutex); 111 120 cout << _opt->_roverName << " slotNewEphGPS" << endl; 121 t_ephGPS eph; 122 eph.set(&gpseph); 123 _pppClient->putGPSEphemeris(&eph); 112 124 } 113 125 -
TabularUnified trunk/BNC/src/PPP/pppThread.h ¶
r5738 r5742 7 7 #include "GPSDecoder.h" 8 8 #include "options.h" 9 #include "pppClient.h" 9 10 10 11 namespace BNC { … … 26 27 QMutex _mutex; 27 28 const t_options* _opt; 29 t_pppClient* _pppClient; 28 30 }; 29 31
Note:
See TracChangeset
for help on using the changeset viewer.