Changeset 10373 in ntrip for trunk/BNC/src/PPP/pppParlist.cpp
- Timestamp:
- Mar 1, 2024, 4:12:31 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppParlist.cpp
r10356 r10373 74 74 const t_pppSatObs* obs = obsVector->at(ii); 75 75 if (obs->prn() == _prn) { 76 double offGps = 0.0; 77 if (_prn.system() == 'G' && tLC != t_lc::MW) { 78 offGps = PPP_CLIENT->offGps(); 79 } 76 80 double offGlo = 0.0; 77 81 if (_prn.system() == 'R' && tLC != t_lc::MW) { … … 86 90 offBds = PPP_CLIENT->offBds(); 87 91 } 88 _x0 = floor((obs->obsValue(tLC) - offG lo - offGal - offBds - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5);92 _x0 = floor((obs->obsValue(tLC) - offGps - offGlo - offGal - offBds - obs->cmpValue(tLC)) / obs->lambda(tLC) + 0.5); 89 93 break; 90 94 } 91 95 } 92 96 } 97 break; 98 case offGps: 99 _epoSpec = true; 100 _sigma0 = OPT->_aprSigClkOff; 101 _x0 = PPP_CLIENT->offGps(); 93 102 break; 94 103 case offGlo: … … 171 180 if (tLC == t_lc::GIM) {return 0.0;} 172 181 return 1.0; 182 case offGps: 183 if (tLC == t_lc::GIM) {return 0.0;} 184 return (obs->prn().system() == 'G') ? 1.0 : 0.0; 173 185 case offGlo: 174 186 if (tLC == t_lc::GIM) {return 0.0;} … … 299 311 ss << "REC_CLK "; 300 312 break; 313 case offGps: 314 ss << "OFF_GPS "; 315 break; 301 316 case offGlo: 302 317 ss << "OFF_GLO "; … … 345 360 //////////////////////////////////////////////////////////////////////////// 346 361 t_pppParlist::~t_pppParlist() { 347 _usedSystems.clear();348 362 349 363 for (unsigned ii = 0; ii < _params.size(); ii++) { … … 396 410 // check which systems have observations 397 411 // ------------------------------------- 398 _usedSystems .clear();412 _usedSystems['G'] = _usedSystems['R'] = _usedSystems['E'] = _usedSystems['C'] = 0; 399 413 for (unsigned jj = 0; jj < obsVector.size(); jj++) { 400 414 const t_pppSatObs* satObs = obsVector[jj]; 401 415 char sys = satObs->prn().system(); 402 if (!_usedSystems.contains(sys)) { 403 _usedSystems.append(sys); 404 } 416 _usedSystems[sys]++; 405 417 } 406 418 … … 438 450 par->type() == t_pppParam::cBiasG2 || 439 451 par->type() == t_pppParam::pBiasG1 || 440 par->type() == t_pppParam::pBiasG2) && ! usedSystems().contains('G')) {452 par->type() == t_pppParam::pBiasG2) && !_usedSystems.value('G')) { 441 453 #ifdef BNC_DEBUG_PPP 442 454 //LOG << "remove1 " << par->toString() << std::endl; … … 448 460 par->type() == t_pppParam::cBiasR2 || 449 461 par->type() == t_pppParam::pBiasR1 || 450 par->type() == t_pppParam::pBiasR2) && ! usedSystems().contains('R')){462 par->type() == t_pppParam::pBiasR2) && !_usedSystems.value('R')){ 451 463 #ifdef BNC_DEBUG_PPP 452 464 //LOG << "remove1 " << par->toString() << std::endl; … … 458 470 par->type() == t_pppParam::cBiasE2 || 459 471 par->type() == t_pppParam::pBiasE1 || 460 par->type() == t_pppParam::pBiasE2) && ! usedSystems().contains('E')) {472 par->type() == t_pppParam::pBiasE2) && !_usedSystems.value('E')) { 461 473 #ifdef BNC_DEBUG_PPP 462 474 //LOG << "remove1 " << par->toString() << std::endl; … … 468 480 par->type() == t_pppParam::cBiasC2 || 469 481 par->type() == t_pppParam::pBiasC1 || 470 par->type() == t_pppParam::pBiasC2) && ! usedSystems().contains('C')) {482 par->type() == t_pppParam::pBiasC2) && !_usedSystems.value('C')) { 471 483 #ifdef BNC_DEBUG_PPP 472 484 //LOG << "remove1 " << par->toString() << std::endl; … … 497 509 // GLONASS Clock Offset 498 510 // -------------------- 499 if (OPT->useSystem('R')) { 511 if ( _usedSystems.value('R') && 512 (_usedSystems.value('G') || _usedSystems.value('E') || _usedSystems.value('C'))) { 500 513 required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy)); 514 } 515 else { 516 PPP_CLIENT->resetOffGlo(); 501 517 } 502 518 503 519 // Galileo Clock Offset 504 520 // -------------------- 505 if ( OPT->useSystem('E')) {521 if (_usedSystems.value('E') && _usedSystems.value('G') && _usedSystems.value('G') >= OPT->_minObs) { 506 522 required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy)); 523 } 524 else { 525 PPP_CLIENT->resetOffGal(); 526 } 527 528 // GPS Clock Offset 529 // -------------------- 530 if (_usedSystems.value('E') && _usedSystems.value('G') && _usedSystems.value('G') < OPT->_minObs) { 531 required.push_back(new t_pppParam(t_pppParam::offGps, t_prn(), t_lc::dummy)); 532 } 533 else { 534 PPP_CLIENT->resetOffGps(); 507 535 } 508 536 509 537 // BDS Clock Offset 510 538 // ---------------- 511 if (OPT->useSystem('C')) { 539 if (_usedSystems.contains('C') && 540 (_usedSystems.contains('G') || _usedSystems.contains('E'))) { 512 541 required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy)); 542 } 543 else { 544 PPP_CLIENT->resetOffBds(); 513 545 } 514 546
Note:
See TracChangeset
for help on using the changeset viewer.