Changeset 10373 in ntrip for trunk/BNC/src/PPP/pppFilter.cpp
- Timestamp:
- Mar 1, 2024, 4:12:31 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r10369 r10373 76 76 string epoTimeStr = string(_epoTime); 77 77 78 const Q List<char> &usedSystems = _parlist->usedSystems();78 const QMap<char, int> &usedSystems = _parlist->usedSystems(); 79 79 80 80 // Set Parameters … … 92 92 // Process Satellite Systems separately 93 93 // ------------------------------------ 94 for ( int iSys = 0; iSys < usedSystems.size(); iSys++) {95 char sys = usedSystems[iSys];96 unsigned intnum = 0;94 for (auto it = usedSystems.begin(); it != usedSystems.end(); ++it) { 95 char sys = it.key(); 96 unsigned num = 0; 97 97 vector<t_pppSatObs*> obsVector; 98 98 for (unsigned jj = 0; jj < allObs.size(); jj++) { … … 185 185 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC); 186 186 } 187 double offGps = 0.0; 188 if (sys == 'G' && tLC != t_lc::MW) { 189 offGps = PPP_CLIENT->offGps(); 190 } 187 191 double offGlo = 0.0; 188 192 if (sys == 'R' && tLC != t_lc::MW) { … … 197 201 offBds = PPP_CLIENT->offBds(); 198 202 } 199 ll[iObs] = obs->obsValue(tLC) - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));203 ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1)); 200 204 PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC)); 201 205 } … … 229 233 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC); 230 234 } 235 double offGps = 0.0; 236 if (sys == 'G' && tLC != t_lc::MW) { 237 offGps = PPP_CLIENT->offGps(); 238 } 231 239 double offGlo = 0.0; 232 240 if (sys == 'R' && tLC != t_lc::MW) { … … 241 249 offBds = PPP_CLIENT->offBds(); 242 250 } 243 ll[iObs] = obs->obsValue(tLC) - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1));251 ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1)); 244 252 PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC)); 245 253 } … … 375 383 376 384 // Check Pre-Fit Residuals 377 / *-----------------------385 // ----------------------- 378 386 else { 379 387 ColumnVector AA(params.size()); … … 382 390 AA[iPar] = par->partial(_epoTime, obs, tLC); 383 391 } 392 double offGps = 0.0; 393 if (sys == 'G' && tLC != t_lc::MW) { 394 offGps = PPP_CLIENT->offGps(); 395 } 384 396 double offGlo = 0.0; 385 397 if (sys == 'R' && tLC != t_lc::MW) { … … 394 406 offBds = PPP_CLIENT->offBds(); 395 407 } 396 double ll = obs->obsValue(tLC) - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA);408 double ll = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA); 397 409 double vv = DotProduct(AA, _xFlt) - ll; 398 410 … … 402 414 resetAmb(obs->prn(), obsVector, tLC); 403 415 } 404 } */416 } 405 417 } 406 418 }
Note:
See TracChangeset
for help on using the changeset viewer.