Changeset 6035 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 21, 2014, 1:04:43 PM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r6020 r6035 157 157 // Create vector of valid observations 158 158 // ----------------------------------- 159 int numValidGPS = 0;160 159 for (unsigned ii = 0; ii < satObs.size(); ii++) { 161 160 char system = satObs[ii]->_prn.system(); 162 if ( system == 'G' || (system == 'R' && OPT->useGlonass())) {161 if (OPT->useSystem(system)) { 163 162 t_pppSatObs* pppSatObs = new t_pppSatObs(*satObs[ii]); 164 163 if (pppSatObs->isValid()) { 165 164 obsVector.push_back(pppSatObs); 166 if (pppSatObs->prn().system() == 'G') {167 ++numValidGPS;168 }169 165 } 170 166 else { … … 283 279 double offGG = 0.0; 284 280 285 if (OPT->use Glonass()) {281 if (OPT->useSystem('R')) { 286 282 287 283 while (obsVector.size() > 0) { -
trunk/BNC/src/PPP/pppOptions.cpp
r6019 r6035 90 90 if (_LCsGPS.size() > 0) answ.push_back('G'); 91 91 if (_LCsGLONASS.size() > 0) answ.push_back('R'); 92 if (_LCsGalileo.size() > 0) answ.push_back('E'); 92 93 return answ; 93 94 } -
trunk/BNC/src/PPP/pppOptions.h
r6019 r6035 14 14 ~t_pppOptions(); 15 15 16 std::vector<char> systems() const; 16 17 const std::vector<t_lc::type>& LCs(char system) const; 18 std::vector<t_lc::type> ambLCs(char system) const; 19 bool useSystem(char system) const {return LCs(system).size() > 0;} 17 20 bool useOrbClkCorr() const; 18 std::vector<char> systems() const;19 std::vector<t_lc::type> ambLCs(char system) const;20 bool useGlonass() const {return _LCsGLONASS.size() > 0;}21 21 bool estTrp() const {return _aprSigTrp > 0.0 || _noiseTrp > 0.0;} 22 22 bool xyzAprRoverSet() const { -
trunk/BNC/src/PPP/pppParlist.cpp
r6021 r6035 301 301 // GPS-Glonass Clock Offset 302 302 // ------------------------ 303 if (OPT->use Glonass()) {303 if (OPT->useSystem('R')) { 304 304 required.push_back(new t_pppParam(t_pppParam::offGG, t_prn(), t_lc::dummy)); 305 305 } -
trunk/BNC/src/PPP/pppSatObs.cpp
r6034 r6035 85 85 // Select pseudoranges and phase observations 86 86 // ------------------------------------------ 87 const string preferredAttrib = "CWP _";87 const string preferredAttrib = "CWPX_"; 88 88 89 89 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { … … 105 105 // -------------------- 106 106 _fType1 = t_lc::toFreq(_prn.system(),t_lc::l1); 107 _fType2 = t_lc::toFreq(_prn.system(),t_lc::l2); 107 if (_prn.system() == 'E') { 108 _fType2 = t_frequency::E5; 109 } 110 else { 111 _fType2 = t_lc::toFreq(_prn.system(),t_lc::l2); 112 } 108 113 109 114 // Check whether all required frequencies available
Note:
See TracChangeset
for help on using the changeset viewer.