Changeset 10256 in ntrip for trunk/BNC/src/PPP/pppParlist.cpp
- Timestamp:
- Nov 25, 2023, 10:44:51 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppParlist.cpp
r10251 r10256 62 62 _noise = OPT->_noiseCrd[2]; 63 63 break; 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: 64 case rClk: 77 65 _epoSpec = true; 78 66 _sigma0 = OPT->_aprSigClk; … … 86 74 const t_pppSatObs* obs = obsVector->at(ii); 87 75 if (obs->prn() == _prn) { 88 _x0 = floor((obs->obsValue(tLC) - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5); 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); 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(); 93 108 break; 94 109 case trp: … … 153 168 if (tLC == t_lc::GIM) {return 0.0;} 154 169 return (sta->xyzApr()[2] - obs->xc()[2]) / rhoV.NormFrobenius(); 155 case rClk G:170 case rClk: 156 171 if (tLC == t_lc::GIM) {return 0.0;} 157 return (obs->prn().system() == 'G') ? 1.0 : 0.0;158 case rClkR:172 return 1.0; 173 case offGlo: 159 174 if (tLC == t_lc::GIM) {return 0.0;} 160 175 return (obs->prn().system() == 'R') ? 1.0 : 0.0; 161 case rClkE:176 case offGal: 162 177 if (tLC == t_lc::GIM) {return 0.0;} 163 178 return (obs->prn().system() == 'E') ? 1.0 : 0.0; 164 case rClkC:179 case offBds: 165 180 if (tLC == t_lc::GIM) {return 0.0;} 166 181 return (obs->prn().system() == 'C') ? 1.0 : 0.0; … … 281 296 ss << "CRD_Z"; 282 297 break; 283 case rClk G: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";298 case rClk: 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 "; 294 309 break; 295 310 case trp: … … 478 493 // Receiver Clocks 479 494 // --------------- 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 } 495 required.push_back(new t_pppParam(t_pppParam::rClk, t_prn(), t_lc::dummy)); 496 497 // GLONASS Clock Offset 498 // -------------------- 499 if (OPT->useSystem('R')) { 500 required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy)); 501 } 502 503 // Galileo Clock Offset 504 // -------------------- 505 if (OPT->useSystem('E')) { 506 required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy)); 507 } 508 509 // BDS Clock Offset 510 // ---------------- 511 if (OPT->useSystem('C')) { 512 required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy)); 513 } 495 514 496 515 // Troposphere
Note:
See TracChangeset
for help on using the changeset viewer.