Changeset 10388 in ntrip for trunk/BNC/src/PPP/pppParlist.cpp
- Timestamp:
- Mar 12, 2024, 3:10:17 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppParlist.cpp
r10387 r10388 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;} … … 298 310 case rClk: 299 311 ss << "REC_CLK "; 312 break; 313 case offGps: 314 ss << "OFF_GPS "; 300 315 break; 301 316 case offGlo: … … 401 416 } 402 417 418 // check which systems have observations 419 // ------------------------------------- 420 _usedSystems['G'] = _usedSystems['R'] = _usedSystems['E'] = _usedSystems['C'] = 0; 421 for (unsigned jj = 0; jj < obsVector.size(); jj++) { 422 const t_pppSatObs* satObs = obsVector[jj]; 423 char sys = satObs->prn().system(); 424 _usedSystems[sys]++; 425 } 426 403 427 // Check whether parameters have observations 404 428 // ------------------------------------------ … … 435 459 required.push_back(new t_pppParam(t_pppParam::crdZ, t_prn(), t_lc::dummy)); 436 460 437 // Receiver Clock 438 // -------------- 461 // Receiver Clocks 462 // --------------- 439 463 required.push_back(new t_pppParam(t_pppParam::rClk, t_prn(), t_lc::dummy)); 440 464 441 465 // GLONASS Clock Offset 442 466 // -------------------- 443 if ((OPT->useSystem('G') && OPT->useSystem('R')) || 444 (OPT->useSystem('E') && OPT->useSystem('R')) || 445 (OPT->useSystem('C') && OPT->useSystem('R')) ) { 467 if ( _usedSystems.value('R') && 468 (_usedSystems.value('G') || _usedSystems.value('E') || _usedSystems.value('C'))) { 446 469 required.push_back(new t_pppParam(t_pppParam::offGlo, t_prn(), t_lc::dummy)); 470 } 471 else { 472 PPP_CLIENT->resetOffGlo(); 447 473 } 448 474 449 475 // Galileo Clock Offset 450 476 // -------------------- 451 if ( OPT->useSystem('G') && OPT->useSystem('E')) {477 if (_usedSystems.value('E') && _usedSystems.value('G') && _usedSystems.value('G') >= OPT->_minObs) { 452 478 required.push_back(new t_pppParam(t_pppParam::offGal, t_prn(), t_lc::dummy)); 479 } 480 else { 481 PPP_CLIENT->resetOffGal(); 482 } 483 484 // GPS Clock Offset 485 // -------------------- 486 if (_usedSystems.value('E') && _usedSystems.value('G') && _usedSystems.value('G') < OPT->_minObs) { 487 required.push_back(new t_pppParam(t_pppParam::offGps, t_prn(), t_lc::dummy)); 488 } 489 else { 490 PPP_CLIENT->resetOffGps(); 453 491 } 454 492 455 493 // BDS Clock Offset 456 494 // ---------------- 457 if ( (OPT->useSystem('G') && OPT->useSystem('C')) ||458 ( OPT->useSystem('E') && OPT->useSystem('C'))) {495 if (_usedSystems.contains('C') && 496 (_usedSystems.contains('G') || _usedSystems.contains('E'))) { 459 497 required.push_back(new t_pppParam(t_pppParam::offBds, t_prn(), t_lc::dummy)); 498 } 499 else { 500 PPP_CLIENT->resetOffBds(); 460 501 } 461 502
Note:
See TracChangeset
for help on using the changeset viewer.