Changeset 10168 in ntrip for trunk/BNC/src
- Timestamp:
- Aug 22, 2023, 6:39:48 PM (17 months ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r10167 r10168 268 268 } 269 269 if (par) { 270 //if (par->ambResetCandidate()) {270 if (par->ambResetCandidate()) { 271 271 resetAmb(par->prn(), obsVector, maxOutlierLC, &QSav, &xSav); 272 // } 273 // else { 274 // par->setAmbResetCandidate(); 275 // obs->setOutlier(); 276 // } 272 } 273 else { 274 par->setAmbResetCandidate(); 275 obs->setOutlier(); 276 } 277 addNoiseToPar(t_pppParam::ion, par->prn(), 0.001); 277 278 } 278 279 else { … … 391 392 } 392 393 t_lc::type tLC = par->tLC(); 393 //if (tLC != lc) {continue;}394 if (tLC != lc) {continue;} 394 395 LOG << string(_epoTime) << " RESET " << par->toString() << endl; 395 396 delete par; par = new t_pppParam(t_pppParam::amb, prn, tLC, &obsVector); … … 413 414 } 414 415 _x0[ind] = par->x0(); 416 irc = success; 417 } 418 } 419 420 return irc; 421 } 422 423 // Add noise to individual parameter 424 //////////////////////////////////////////////////////////////////////////// 425 t_irc t_pppFilter::addNoiseToPar(t_pppParam::e_type parType, t_prn prn, double noise) { 426 t_irc irc = failure; 427 vector<t_pppParam*> ¶ms = _parlist->params(); 428 for (unsigned iPar = 0; iPar < params.size(); iPar++) { 429 t_pppParam *par = params[iPar]; 430 if (par->type() == parType && par->prn() == prn) { 431 int ind = par->indexNew(); 432 LOG << string(_epoTime) << " ADD NOISE TO " << par->toString() << endl; 433 par->setIndex(ind); 434 _QFlt(ind + 1, ind + 1) = noise * noise; 415 435 irc = success; 416 436 } -
trunk/BNC/src/PPP/pppFilter.h
r10034 r10168 83 83 SymmetricMatrix* QSav = 0, ColumnVector* xSav = 0); 84 84 85 t_irc addNoiseToPar(t_pppParam::e_type parType, t_prn prn, double noise); 86 85 87 void cmpDOP(const std::vector<t_pppSatObs*>& obsVector); 86 88
Note:
See TracChangeset
for help on using the changeset viewer.