Changeset 10384 in ntrip for trunk/BNC/src/PPP/pppFilter.cpp
- Timestamp:
- Mar 11, 2024, 3:28:32 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r10381 r10384 76 76 string epoTimeStr = string(_epoTime); 77 77 78 const QMap<char, int> &usedSystems = _parlist->usedSystems();79 80 78 // Set Parameters 81 79 // -------------- … … 92 90 // Process Satellite Systems separately 93 91 // ------------------------------------ 94 for ( auto it = usedSystems.begin(); it != usedSystems.end(); ++it) {95 char sys = it.key();96 unsignednum = 0;92 for (unsigned iSys = 0; iSys < OPT->systems().size(); iSys++) { 93 char sys = OPT->systems()[iSys]; 94 int num = 0; 97 95 vector<t_pppSatObs*> obsVector; 98 96 for (unsigned jj = 0; jj < allObs.size(); jj++) { … … 167 165 for (unsigned ii = 0; ii < obsVector.size(); ii++) { 168 166 t_pppSatObs *obs = obsVector[ii]; 169 char sys = obs->prn().system();170 167 if (iOutlier == 0) { 171 168 obs->resetOutlier(); … … 185 182 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC); 186 183 } 187 double offGps = 0.0; 188 if (sys == 'G' && tLC != t_lc::MW) { 189 offGps = PPP_CLIENT->offGps(); 190 } 191 double offGlo = 0.0; 192 if (sys == 'R' && tLC != t_lc::MW) { 193 offGlo = PPP_CLIENT->offGlo(); 194 } 195 double offGal = 0.0; 196 if (sys == 'E' && tLC != t_lc::MW) { 197 offGal = PPP_CLIENT->offGal(); 198 } 199 double offBds = 0.0; 200 if (sys == 'C' && tLC != t_lc::MW) { 201 offBds = PPP_CLIENT->offBds(); 202 } 203 ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1)); 184 185 ll[iObs] = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1)); 204 186 PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC)); 205 187 } … … 218 200 for (unsigned ii = 0; ii < obsVector.size(); ii++) { 219 201 t_pppSatObs *obs = obsVector[ii]; 220 char sys = obs->prn().system();221 202 if (!obs->outlier()) { 222 203 for (unsigned jj = 0; jj < usedLCs; jj++) { … … 233 214 AA[iObs][iPar] = par->partial(_epoTime, obs, tLC); 234 215 } 235 double offGps = 0.0; 236 if (sys == 'G' && tLC != t_lc::MW) { 237 offGps = PPP_CLIENT->offGps(); 238 } 239 double offGlo = 0.0; 240 if (sys == 'R' && tLC != t_lc::MW) { 241 offGlo = PPP_CLIENT->offGlo(); 242 } 243 double offGal = 0.0; 244 if (sys == 'E' && tLC != t_lc::MW) { 245 offGal = PPP_CLIENT->offGal(); 246 } 247 double offBds = 0.0; 248 if (sys == 'C' && tLC != t_lc::MW) { 249 offBds = PPP_CLIENT->offBds(); 250 } 251 ll[iObs] = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1)); 216 ll[iObs] = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA.Row(iObs + 1)); 252 217 PP[iObs] = 1.0 / (obs->sigma(tLC) * obs->sigma(tLC)); 253 218 } … … 351 316 for (unsigned iObs = 0; iObs < obsVector.size(); iObs++) { 352 317 const t_pppSatObs *obs = obsVector[iObs]; 353 char sys = obs->prn().system();354 318 355 319 // Check set Slips and Jump Counters … … 383 347 384 348 // Check Pre-Fit Residuals 385 / *-----------------------349 // ----------------------- 386 350 else { 387 351 ColumnVector AA(params.size()); … … 390 354 AA[iPar] = par->partial(_epoTime, obs, tLC); 391 355 } 392 double offGps = 0.0; 393 if (sys == 'G' && tLC != t_lc::MW) { 394 offGps = PPP_CLIENT->offGps(); 395 } 396 double offGlo = 0.0; 397 if (sys == 'R' && tLC != t_lc::MW) { 398 offGlo = PPP_CLIENT->offGlo(); 399 } 400 double offGal = 0.0; 401 if (sys == 'E' && tLC != t_lc::MW) { 402 offGal = PPP_CLIENT->offGal(); 403 } 404 double offBds = 0.0; 405 if (sys == 'C' && tLC != t_lc::MW) { 406 offBds = PPP_CLIENT->offBds(); 407 } 408 double ll = obs->obsValue(tLC) -offGps - offGlo - offGal - offBds - obs->cmpValue(tLC) - DotProduct(_x0, AA); 356 double ll = obs->obsValue(tLC) - obs->cmpValue(tLC) - DotProduct(_x0, AA); 409 357 double vv = DotProduct(AA, _xFlt) - ll; 410 358 … … 414 362 resetAmb(obs->prn(), obsVector, tLC); 415 363 } 416 } */364 } 417 365 } 418 366 }
Note:
See TracChangeset
for help on using the changeset viewer.