Changeset 10003 in ntrip for trunk/BNC/src/PPP/pppParlist.cpp
- Timestamp:
- Mar 16, 2023, 10:06:39 AM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppParlist.cpp
r10002 r10003 74 74 const t_pppSatObs* obs = obsVector->at(ii); 75 75 if (obs->prn() == _prn) { 76 double offG G= 0;76 double offGlo = 0; 77 77 if (_prn.system() == 'R' && tLC != t_lc::MW) { 78 offG G = PPP_CLIENT->offGG();78 offGlo = PPP_CLIENT->offGlo(); 79 79 } 80 _x0 = floor((obs->obsValue(tLC) - offGG - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5); 80 double offGal = 0; 81 if (_prn.system() == 'E' && tLC != t_lc::MW) { 82 offGal = PPP_CLIENT->offGal(); 83 } 84 double offBds = 0; 85 if (_prn.system() == 'C' && tLC != t_lc::MW) { 86 offBds = PPP_CLIENT->offBds(); 87 } 88 _x0 = floor((obs->obsValue(tLC) - offGlo - offGal - offBds - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5); 81 89 break; 82 90 } … … 84 92 } 85 93 break; 86 case offG G:94 case offGlo: 87 95 _epoSpec = true; 88 96 _sigma0 = OPT->_aprSigClk; 89 _x0 = PPP_CLIENT->offGG(); 90 break; 97 _x0 = PPP_CLIENT->offGlo(); 98 break; 99 case offGal: 100 _epoSpec = true; 101 _sigma0 = OPT->_aprSigClk; 102 _x0 = PPP_CLIENT->offGal(); 103 break; 104 case offBds: 105 _epoSpec = true; 106 _sigma0 = OPT->_aprSigClk; 107 _x0 = PPP_CLIENT->offBds(); 108 break; 91 109 case trp: 92 110 _epoSpec = false; … … 176 194 if (tLC == t_lc::GIM) {return 0.0;} 177 195 return 1.0; 178 case offG G:196 case offGlo: 179 197 if (tLC == t_lc::GIM) {return 0.0;} 180 198 return (obs->prn().system() == 'R') ? 1.0 : 0.0; 199 case offGal: 200 if (tLC == t_lc::GIM) {return 0.0;} 201 return (obs->prn().system() == 'E') ? 1.0 : 0.0; 202 case offBds: 203 if (tLC == t_lc::GIM) {return 0.0;} 204 return (obs->prn().system() == 'C') ? 1.0 : 0.0; 181 205 case amb: 182 206 if (tLC == t_lc::GIM) {return 0.0;} … … 304 328 ss << "REC_CLK "; 305 329 break; 306 case offGG: 307 ss << "OFF_GLO "; 330 case offGlo: 331 ss << "OFF_GLO "; 332 break; 333 case offGal: 334 ss << "OFF GAL "; 335 break; 336 case offBds: 337 ss << "OFF_BDS "; 308 338 break; 309 339 case trp: … … 663 693 required.push_back(new t_pppParam(t_pppParam::clkR, t_prn(), t_lc::dummy)); 664 694 665 // GPS-Glonass Clock Offset 666 // ------------------------ 667 if (OPT->useSystem('R')) { 668 required.push_back(new t_pppParam(t_pppParam::offGG, t_prn(), t_lc::dummy)); 695 // Glonass Clock Offset 696 // -------------------- 697 if (_usedSystems.contains('R') && (_usedSystems.contains('G') || _usedSystems.contains('E'))) { 698 required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy)); 699 } 700 701 // Galileo Clock Offset 702 // -------------------- 703 if (_usedSystems.contains('E') && _usedSystems.contains('G')) { 704 required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy)); 705 } 706 707 // BDS Clock Offset 708 // ---------------- 709 if (_usedSystems.contains('C') && (_usedSystems.contains('G') || _usedSystems.contains('E'))) { 710 required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy)); 669 711 } 670 712
Note:
See TracChangeset
for help on using the changeset viewer.