Changeset 10232 in ntrip for trunk/BNC/src/PPP/pppParlist.cpp
- Timestamp:
- Oct 30, 2023, 4:39:46 PM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppParlist.cpp
r10219 r10232 62 62 _noise = OPT->_noiseCrd[2]; 63 63 break; 64 case clkR: 64 case rClkG: 65 _epoSpec = true; 66 _sigma0 = OPT->_aprSigClk; 67 break; 68 case rClkR: 69 _epoSpec = true; 70 _sigma0 = OPT->_aprSigClk; 71 break; 72 case rClkE: 73 _epoSpec = true; 74 _sigma0 = OPT->_aprSigClk; 75 break; 76 case rClkC: 65 77 _epoSpec = true; 66 78 _sigma0 = OPT->_aprSigClk; … … 74 86 const t_pppSatObs* obs = obsVector->at(ii); 75 87 if (obs->prn() == _prn) { 76 double offGlo = 0; 77 if (_prn.system() == 'R' && tLC != t_lc::MW) { 78 offGlo = PPP_CLIENT->offGlo(); 79 } 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); 88 _x0 = floor((obs->obsValue(tLC) - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5); 89 89 break; 90 90 } 91 91 } 92 92 } 93 break;94 case offGlo:95 _epoSpec = true;96 _sigma0 = OPT->_aprSigClk;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 93 break; 109 94 case trp: … … 168 153 if (tLC == t_lc::GIM) {return 0.0;} 169 154 return (sta->xyzApr()[2] - obs->xc()[2]) / rhoV.NormFrobenius(); 170 case clkR:155 case rClkG: 171 156 if (tLC == t_lc::GIM) {return 0.0;} 172 return 1.0;173 case offGlo:157 return (obs->prn().system() == 'G') ? 1.0 : 0.0; 158 case rClkR: 174 159 if (tLC == t_lc::GIM) {return 0.0;} 175 160 return (obs->prn().system() == 'R') ? 1.0 : 0.0; 176 case offGal:161 case rClkE: 177 162 if (tLC == t_lc::GIM) {return 0.0;} 178 163 return (obs->prn().system() == 'E') ? 1.0 : 0.0; 179 case offBds:164 case rClkC: 180 165 if (tLC == t_lc::GIM) {return 0.0;} 181 166 return (obs->prn().system() == 'C') ? 1.0 : 0.0; … … 296 281 ss << "CRD_Z"; 297 282 break; 298 case clkR:299 ss << "REC_CLK 300 break; 301 case offGlo:302 ss << " OFF_GLO";303 break; 304 case offGal:305 ss << " OFF_GAL";306 break; 307 case offBds:308 ss << " OFF_BDS";283 case rClkG: 284 ss << "REC_CLK G "; 285 break; 286 case rClkR: 287 ss << "REC_CLK R "; 288 break; 289 case rClkE: 290 ss << "REC_CLK E "; 291 break; 292 case rClkC: 293 ss << "REC_CLK C "; 309 294 break; 310 295 case trp: … … 491 476 required.push_back(new t_pppParam(t_pppParam::crdZ, t_prn(), t_lc::dummy)); 492 477 493 // Receiver Clock 494 // -------------- 495 required.push_back(new t_pppParam(t_pppParam::clkR, t_prn(), t_lc::dummy)); 496 497 // GLONASS Clock Offset 498 // -------------------- 499 if ( _usedSystems.contains('R') && 500 (_usedSystems.contains('G') || _usedSystems.contains('E') || _usedSystems.contains('C'))) { 501 required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy)); 502 } 503 504 // Galileo Clock Offset 505 // -------------------- 506 if (_usedSystems.contains('E') && _usedSystems.contains('G')) { 507 required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy)); 508 } 509 510 // BDS Clock Offset 511 // ---------------- 512 if (_usedSystems.contains('C') && (_usedSystems.contains('G') || _usedSystems.contains('E'))) { 513 required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy)); 514 } 478 // Receiver Clocks 479 // --------------- 480 if (_usedSystems.contains('G')) { 481 required.push_back(new t_pppParam(t_pppParam::rClkG, t_prn(), t_lc::dummy)); 482 } 483 484 if (_usedSystems.contains('R')) { 485 required.push_back(new t_pppParam(t_pppParam::rClkR, t_prn(), t_lc::dummy)); 486 } 487 488 if (_usedSystems.contains('E')) { 489 required.push_back(new t_pppParam(t_pppParam::rClkE, t_prn(), t_lc::dummy)); 490 } 491 492 if (_usedSystems.contains('C')) { 493 required.push_back(new t_pppParam(t_pppParam::rClkC, t_prn(), t_lc::dummy)); 494 } 515 495 516 496 // Troposphere
Note:
See TracChangeset
for help on using the changeset viewer.