Changeset 5742 in ntrip
- Timestamp:
- Aug 2, 2014, 4:23:36 PM (10 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
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; -
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 { -
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 -
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 -
trunk/BNC/src/bncantex.h
r4278 r5742 33 33 class bncAntex { 34 34 public: 35 bncAntex(const char* fileName); 35 36 bncAntex(); 36 37 ~bncAntex(); -
trunk/BNC/src/bnctime.h
r4586 r5742 28 28 double& sec) const; 29 29 bool valid() const {return _mjd != 0 || _sec != 0.0;} 30 bool undef() const {return !valid();} 30 31 bool operator==(const bncTime &time1) const; 31 32 bool operator!=(const bncTime &time1) const; … … 37 38 bncTime operator-(double sec) const; 38 39 bncTime operator+(double sec) const; 40 bncTime& operator+=(double sec); 39 41 40 42 std::string timestr(unsigned numdec = 3, char sep = ':') const; 41 43 std::string datestr(char sep = '-') const; 44 operator std::string() const; 42 45 43 46 private: -
trunk/BNC/src/combination/bnccomb.cpp
r5585 r5742 29 29 #include "bncantex.h" 30 30 #include "bnctides.h" 31 #include "t_prn.h" 31 32 32 33 const double sig0_offAC = 1000.0; … … 36 37 37 38 const double sigObs = 0.05; 38 39 const int MAXPRN_GLONASS = 24;40 39 41 40 using namespace std; … … 194 193 cmbAC* AC = it.next(); 195 194 _params.push_back(new cmbParam(cmbParam::offACgps, ++nextPar, AC->name, "")); 196 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {195 for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) { 197 196 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 198 197 _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar, … … 201 200 if (_useGlonass) { 202 201 _params.push_back(new cmbParam(cmbParam::offACglo, ++nextPar, AC->name, "")); 203 for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {202 for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) { 204 203 QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0')); 205 204 _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar, … … 208 207 } 209 208 } 210 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {209 for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) { 211 210 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 212 211 _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn)); 213 212 } 214 213 if (_useGlonass) { 215 for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {214 for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) { 216 215 QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0')); 217 216 _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn)); … … 763 762 } 764 763 765 int MAXPRN =MAXPRN_GPS;764 int maxSat = t_prn::MAXPRN_GPS; 766 765 // if (_useGlonass) { 767 // MAXPRN = MAXPRN_GPS +MAXPRN_GLONASS;766 // maxSat = t_prn::MAXPRN_GPS + t_prn::MAXPRN_GLONASS; 768 767 // } 769 768 770 const int nCon = (_method == filter) ? 1 + MAXPRN: 0;769 const int nCon = (_method == filter) ? 1 + maxSat : 0; 771 770 772 771 AA.ReSize(nObs+nCon, nPar); AA = 0.0; … … 808 807 } 809 808 int iCond = 1; 810 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {809 for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) { 811 810 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 812 811 ++iCond; … … 822 821 } 823 822 // if (_useGlonass) { 824 // for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {823 // for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) { 825 824 // QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0')); 826 825 // ++iCond; -
trunk/BNC/src/rinex/rnxobsfile.cpp
r5468 r5742 59 59 _version = 0.0; 60 60 _interval = 0.0; 61 for (unsigned iPrn = 1; iPrn <= MAXPRN_GPS; iPrn++) {61 for (unsigned iPrn = 1; iPrn <= t_prn::MAXPRN_GPS; iPrn++) { 62 62 _wlFactorsL1[iPrn] = 1; 63 63 _wlFactorsL2[iPrn] = 1; … … 125 125 in >> wlFactL1 >> wlFactL2 >> numSat; 126 126 if (numSat == 0) { 127 for (unsigned iPrn = 1; iPrn <= MAXPRN_GPS; iPrn++) {127 for (unsigned iPrn = 1; iPrn <= t_prn::MAXPRN_GPS; iPrn++) { 128 128 _wlFactorsL1[iPrn] = wlFactL1; 129 129 _wlFactorsL2[iPrn] = wlFactL2; … … 750 750 _header._receiverVersion = header._receiverVersion; 751 751 752 for (unsigned iPrn = 1; iPrn <= MAXPRN_GPS; iPrn++) {752 for (unsigned iPrn = 1; iPrn <= t_prn::MAXPRN_GPS; iPrn++) { 753 753 _header._wlFactorsL1[iPrn] = header._wlFactorsL1[iPrn]; 754 754 _header._wlFactorsL2[iPrn] = header._wlFactorsL2[iPrn]; -
trunk/BNC/src/rinex/rnxobsfile.h
r5375 r5742 35 35 #include "bncconst.h" 36 36 #include "bnctime.h" 37 38 #define MAXPRN_GPS 32 37 #include "t_prn.h" 39 38 40 39 class t_rnxObsHeader { … … 72 71 QVector<QString> _obsTypesV2; 73 72 QMap<char, QVector<QString> > _obsTypesV3; 74 int _wlFactorsL1[ MAXPRN_GPS+1];75 int _wlFactorsL2[ MAXPRN_GPS+1];73 int _wlFactorsL1[t_prn::MAXPRN_GPS+1]; 74 int _wlFactorsL2[t_prn::MAXPRN_GPS+1]; 76 75 bncTime _startTime; 77 76 }; … … 132 131 t_rnxEpo* nextEpoch(); 133 132 int wlFactorL1(unsigned iPrn) { 134 return iPrn <= MAXPRN_GPS ? _header._wlFactorsL1[iPrn] : 1;133 return iPrn <= t_prn::MAXPRN_GPS ? _header._wlFactorsL1[iPrn] : 1; 135 134 } 136 135 int wlFactorL2(unsigned iPrn) { 137 return iPrn <= MAXPRN_GPS ? _header._wlFactorsL2[iPrn] : 1;136 return iPrn <= t_prn::MAXPRN_GPS ? _header._wlFactorsL2[iPrn] : 1; 138 137 } 139 138 -
trunk/BNC/src/src.pri
r5739 r5742 59 59 RTCM3/clock_and_orbit/clock_orbit_rtcm.h \ 60 60 PPP/pppwidgets.h PPP/options.h PPP/pppMain.h \ 61 PPP/pppThread.h 61 PPP/pppThread.h PPP/pppClient.h 62 62 63 63 HEADERS += serial/qextserialbase.h serial/qextserialport.h … … 88 88 RTCM3/clock_and_orbit/clock_orbit_rtcm.c \ 89 89 PPP/pppwidgets.cpp PPP/options.cpp PPP/pppMain.cpp \ 90 PPP/pppThread.cpp 90 PPP/pppThread.cpp PPP/pppClient.cpp 91 91 92 92 SOURCES += serial/qextserialbase.cpp serial/qextserialport.cpp
Note:
See TracChangeset
for help on using the changeset viewer.