Changeset 5859 in ntrip for trunk/BNC/src/PPP
- Timestamp:
- Aug 7, 2014, 2:37:45 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r5842 r5859 261 261 int maxOutlierIndex = -1; 262 262 t_lc::type maxOutlierLC = t_lc::dummy; 263 for (unsigned ii = 0; ii < usedObs.size(); ii++) { 264 const t_lc::type tLC = usedTypes[ii]; 265 double res = fabs(vv[ii]); 266 if (res > OPT->maxRes(tLC)) { 267 if (res > fabs(maxOutlier)) { 268 maxOutlier = vv[ii]; 269 maxOutlierIndex = ii; 270 maxOutlierLC = tLC; 271 } 263 for (unsigned sysGPS = 0; sysGPS <= 1; sysGPS++) { // first GLONASS then GPS 264 for (unsigned ii = 0; ii < usedObs.size(); ii++) { 265 if (usedObs[ii]->prn().system() != 'G' || sysGPS == 1) { 266 const t_lc::type tLC = usedTypes[ii]; 267 double res = fabs(vv[ii]); 268 if (res > OPT->maxRes(tLC)) { 269 if (res > fabs(maxOutlier)) { 270 maxOutlier = vv[ii]; 271 maxOutlierIndex = ii; 272 maxOutlierLC = tLC; 273 } 274 } 275 } 276 } 277 if (maxOutlierIndex != -1) { 278 break; 272 279 } 273 280 }
Note:
See TracChangeset
for help on using the changeset viewer.