Index: trunk/BNC/src/PPP/pppClient.cpp
===================================================================
--- trunk/BNC/src/PPP/pppClient.cpp	(revision 10191)
+++ trunk/BNC/src/PPP/pppClient.cpp	(revision 10193)
@@ -69,4 +69,5 @@
   _offGal = 0.0;
   _offBds = 0.0;
+
   CLIENTS.setLocalData(this);  // CLIENTS takes ownership over "this"
 }
@@ -340,7 +341,7 @@
 double t_pppClient::cmpOffGlo(vector<t_pppSatObs*>& obsVector) {
 
-  t_lc::type tLC   = t_lc::dummy;
-  double     offGlo = 0.0;
-
+  t_lc::type tLC = t_lc::dummy;
+  double offGlo = 0.0;
+  double MAXRES = 0.0;
   if (OPT->useSystem('R')) {
 
@@ -356,4 +357,5 @@
           if (tLC == t_lc::dummy) {
             tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
+            MAXRES = satObs->maxRes(tLC);
           }
           if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) {
@@ -377,5 +379,5 @@
       }
 
-      if (fabs(maxRes) > 1000.0) {
+      if (fabs(maxRes) > MAXRES) {
         LOG << "t_pppClient::cmpOffGlo outlier " << maxResPrn.toString() << " " << maxRes << endl;
         obsVector.erase(obsVector.begin() + maxResIndex);
@@ -394,6 +396,7 @@
 double t_pppClient::cmpOffGal(vector<t_pppSatObs*>& obsVector) {
 
-  t_lc::type tLC   = t_lc::dummy;
-  double     offGal = 0.0;
+  t_lc::type tLC  = t_lc::dummy;
+  double offGal = 0.0;
+  double MAXRES = 0.0;
 
   if (OPT->useSystem('E')) {
@@ -410,4 +413,5 @@
           if (tLC == t_lc::dummy) {
             tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
+            MAXRES = satObs->maxRes(tLC);
           }
           if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= OPT->_minEle)) {
@@ -431,5 +435,5 @@
       }
 
-      if (fabs(maxRes) > 1000.0) {
+      if (fabs(maxRes) > MAXRES) {
         LOG << "t_pppClient::cmpOffGal outlier " << maxResPrn.toString() << " " << maxRes << endl;
         obsVector.erase(obsVector.begin() + maxResIndex);
@@ -449,6 +453,7 @@
 double t_pppClient::cmpOffBds(vector<t_pppSatObs*>& obsVector) {
 
-  t_lc::type tLC   = t_lc::dummy;
-  double     offBds = 0.0;
+  t_lc::type tLC = t_lc::dummy;
+  double offBds = 0.0;
+  double MAXRES = 0.0;
 
   if (_opt->useSystem('C')) {
@@ -464,4 +469,5 @@
           if (tLC == t_lc::dummy) {
             tLC = satObs->isValid(t_lc::cIF) ? t_lc::cIF : t_lc::c1;
+            MAXRES = satObs->maxRes(tLC);
           }
           if (satObs->isValid(tLC) && (!satObs->modelSet() || satObs->eleSat() >= _opt->_minEle)) {
@@ -485,5 +491,5 @@
       }
 
-      if (fabs(maxRes) >  1000.0) {
+      if (fabs(maxRes) > MAXRES) {
         LOG << "t_pppClient::cmpOffBds outlier " << maxResPrn.toString() << " " << maxRes << endl;
         delete obsVector.at(maxResIndex);
Index: trunk/BNC/src/PPP/pppFilter.cpp
===================================================================
--- trunk/BNC/src/PPP/pppFilter.cpp	(revision 10191)
+++ trunk/BNC/src/PPP/pppFilter.cpp	(revision 10193)
@@ -192,5 +192,5 @@
     // Check number of observations
     // ----------------------------
-    if (nSat < 2) {
+    if (nSat < 3) {
       LOG << "t_pppFilter::processSystem not enough observations " << nSat << "\n";
       return failure;
