Changeset 9556 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Nov 30, 2021, 1:09:49 PM (3 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r9548 r9556 260 260 } 261 261 } 262 } 263 264 // Check number of observations 265 // ---------------------------- 266 if (iObs == -1) {LOG << "iObs == -1\n"; 267 return failure; 268 } 269 if (OPT->_obsModelType == OPT->DCMcodeBias || 270 OPT->_obsModelType == OPT->DCMphaseBias || 271 OPT->_pseudoObsIono) { 272 double numSat = floor(iObs/2.0); 273 if (numSat < 2.0) { 274 LOG << sys << ": numsat " << numSat << " but at least 2 satellites would be required" << endl; 275 return failure; 276 } 262 277 } 263 278 … … 294 309 } 295 310 296 // Check number of observations, truncate matrices 297 // ----------------------------------------------- 298 if (iObs == -1) {LOG << "iObs == -1\n"; 299 return failure; 300 } 311 // Truncate matrices 312 // ----------------- 301 313 AA = AA.Rows(1, iObs+1); 302 314 ll = ll.Rows(1, iObs+1); … … 330 342 t_pppSatObs* obs = usedObs[maxOutlierIndex]; 331 343 t_pppParam* par = 0; 332 LOG << epoTimeStr << " Outlier ("333 << ((preProcessing) ? "pre-processing) " : "fin-processing) ") << t_lc::toString(maxOutlierLC) << ' '334 << obs->prn().toString() << ' '335 << setw(8) << setprecision(4) << maxOutlier << endl;336 344 for (unsigned iPar = 0; iPar < nPar; iPar++) { 337 345 t_pppParam* hlp = params[iPar]; … … 348 356 t_lc::toString(maxOutlierLC) == "l2") ) { 349 357 _obsPool->setRefSatChangeRequired(sys, true); 358 LOG << epoTimeStr << " Outlier (" 359 << ((preProcessing) ? "pre-processing) " : "fin-processing) ") << t_lc::toString(maxOutlierLC) << ' ' 360 << obs->prn().toString() << ' ' << setw(8) << setprecision(4) << maxOutlier << endl; 350 361 break; 351 362 } … … 353 364 if (par) { 354 365 par->setAmbResetCandidate(); 355 obs->setOutlier();356 }357 else {358 obs->setOutlier();359 366 } 360 367 } 361 368 } 362 369 else {// fin-processing 370 LOG << epoTimeStr << " Outlier " << t_lc::toString(maxOutlierLC) << ' ' 371 << obs->prn().toString() << ' ' << setw(8) << setprecision(4) << maxOutlier << endl; 363 372 if (par) { 364 373 if (par->ambResetCandidate()) { -
trunk/BNC/src/PPP/pppSatObs.cpp
r9554 r9556 348 348 retVal = sqrt(retVal); 349 349 350 return retVal; 350 // Elevation-Dependent Weighting 351 // ----------------------------- 352 double cEle = 1.0; 353 if ( (OPT->_eleWgtCode && t_lc::includesCode(tLC)) || 354 (OPT->_eleWgtPhase && t_lc::includesPhase(tLC)) ) { 355 double eleD = eleSat()*180.0/M_PI; 356 double hlp = fabs(90.0 - eleD); 357 cEle = (1.0 + hlp*hlp*hlp*0.000004); 358 } 359 360 return cEle * retVal; 351 361 } 352 362
Note:
See TracChangeset
for help on using the changeset viewer.