Changeset 10193 in ntrip for trunk/BNC/src
- Timestamp:
- Sep 1, 2023, 10:40:53 PM (15 months ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r10184 r10193 69 69 _offGal = 0.0; 70 70 _offBds = 0.0; 71 71 72 CLIENTS.setLocalData(this); // CLIENTS takes ownership over "this" 72 73 } … … 340 341 double t_pppClient::cmpOffGlo(vector<t_pppSatObs*>& obsVector) { 341 342 342 t_lc::type tLC 343 double 344 343 t_lc::type tLC = t_lc::dummy; 344 double offGlo = 0.0; 345 double MAXRES = 0.0; 345 346 if (OPT->useSystem('R')) { 346 347 … … 356 357 if (tLC == t_lc::dummy) { 357 358 tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1; 359 MAXRES = satObs->maxRes(tLC); 358 360 } 359 361 if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) { … … 377 379 } 378 380 379 if (fabs(maxRes) > 1000.0) {381 if (fabs(maxRes) > MAXRES) { 380 382 LOG << "t_pppClient::cmpOffGlo outlier " << maxResPrn.toString() << " " << maxRes << endl; 381 383 obsVector.erase(obsVector.begin() + maxResIndex); … … 394 396 double t_pppClient::cmpOffGal(vector<t_pppSatObs*>& obsVector) { 395 397 396 t_lc::type tLC = t_lc::dummy; 397 double offGal = 0.0; 398 t_lc::type tLC = t_lc::dummy; 399 double offGal = 0.0; 400 double MAXRES = 0.0; 398 401 399 402 if (OPT->useSystem('E')) { … … 410 413 if (tLC == t_lc::dummy) { 411 414 tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1; 415 MAXRES = satObs->maxRes(tLC); 412 416 } 413 417 if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) { … … 431 435 } 432 436 433 if (fabs(maxRes) > 1000.0) {437 if (fabs(maxRes) > MAXRES) { 434 438 LOG << "t_pppClient::cmpOffGal outlier " << maxResPrn.toString() << " " << maxRes << endl; 435 439 obsVector.erase(obsVector.begin() + maxResIndex); … … 449 453 double t_pppClient::cmpOffBds(vector<t_pppSatObs*>& obsVector) { 450 454 451 t_lc::type tLC = t_lc::dummy; 452 double offBds = 0.0; 455 t_lc::type tLC = t_lc::dummy; 456 double offBds = 0.0; 457 double MAXRES = 0.0; 453 458 454 459 if (_opt->useSystem('C')) { … … 464 469 if (tLC == t_lc::dummy) { 465 470 tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1; 471 MAXRES = satObs->maxRes(tLC); 466 472 } 467 473 if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle)) { … … 485 491 } 486 492 487 if (fabs(maxRes) > 1000.0) {493 if (fabs(maxRes) > MAXRES) { 488 494 LOG << "t_pppClient::cmpOffBds outlier " << maxResPrn.toString() << " " << maxRes << endl; 489 495 delete obsVector.at(maxResIndex); -
trunk/BNC/src/PPP/pppFilter.cpp
r10191 r10193 192 192 // Check number of observations 193 193 // ---------------------------- 194 if (nSat < 2) {194 if (nSat < 3) { 195 195 LOG << "t_pppFilter::processSystem not enough observations " << nSat << "\n"; 196 196 return failure;
Note:
See TracChangeset
for help on using the changeset viewer.