Changeset 6008 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 18, 2014, 11:19:56 AM (10 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r6007 r6008 111 111 int iOld = par1->indexOld(); 112 112 if (iOld < 0) { 113 if (ii < 3) { 114 _QFlt[ii][ii] = par1->sigma0() * par1->sigma0(); // new parameter 115 } 113 _QFlt[ii][ii] = par1->sigma0() * par1->sigma0(); // new parameter 116 114 } 117 115 else { 118 if (ii < 3) { 119 _QFlt[ii][ii] = QFltOld[iOld][iOld] + par1->noise() * par1->noise(); 120 } 121 _xFlt[ii] = xFltOld[iOld]; 116 _QFlt[ii][ii] = QFltOld[iOld][iOld] + par1->noise() * par1->noise(); 117 _xFlt[ii] = xFltOld[iOld]; 122 118 for (unsigned jj = 0; jj < ii; jj++) { 123 119 const t_pppParam* par2 = params[jj]; … … 130 126 } 131 127 132 predictCovCrdPart( );128 predictCovCrdPart(QFltOld); 133 129 134 130 // Process Satellite Systems separately … … 435 431 // Compute various DOP Values 436 432 //////////////////////////////////////////////////////////////////////////// 437 void t_pppFilter::predictCovCrdPart( ) {433 void t_pppFilter::predictCovCrdPart(const SymmetricMatrix& QFltOld) { 438 434 439 435 const vector<t_pppParam*>& params = _parlist->params(); 440 441 bool first = (_QFlt[0][0] == 0.0 && _QFlt[1][1] == 0.0 && _QFlt[2][2] == 0.0); 442 443 for (unsigned ii = 0; ii < 3; ii++) { 444 const t_pppParam* par1 = params[ii]; 445 if (first) { 446 _QFlt[ii][ii] = par1->sigma0() * par1->sigma0(); // new parameter 447 } 448 else { 449 _QFlt[ii][ii] += par1->noise() * par1->noise(); 450 } 451 } 452 } 436 if (params.size() < 3) { 437 return; 438 } 439 440 bool first = (params[0]->indexOld() < 0); 441 442 if (first) { 443 _QFlt.SymSubMatrix(1,3) = 0.0; 444 for (unsigned ii = 0; ii < 3; ii++) { 445 const t_pppParam* par1 = params[ii]; 446 _QFlt[ii][ii] = par1->sigma0() * par1->sigma0(); 447 } 448 } 449 else { 450 _QFlt.SymSubMatrix(1,3) = QFltOld.SymSubMatrix(1,3); 451 for (unsigned ii = 0; ii < 3; ii++) { 452 const t_pppParam* par1 = params[ii]; 453 _QFlt[ii][ii] = QFltOld[ii][ii] + par1->noise() * par1->noise(); 454 } 455 } 456 } -
trunk/BNC/src/PPP/pppFilter.h
r6005 r6008 61 61 void cmpDOP(const std::vector<t_pppSatObs*>& obsVector); 62 62 63 void predictCovCrdPart( );63 void predictCovCrdPart(const SymmetricMatrix& QFltOld); 64 64 65 65 bncTime _epoTime;
Note:
See TracChangeset
for help on using the changeset viewer.