Changeset 4354 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Jun 24, 2012, 6:07:55 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcanalyze.cpp

    r4353 r4354  
    214214
    215215  t_anaObs* newObs = new t_anaObs(obs);
    216   anaObs << newObs;
     216  bool      okFlag = false;
    217217
    218218  // Compute the Multipath
     
    227227    if (obs.p1() != 0.0) {
    228228      newObs->MP1 = obs.p1() - L1 - 2.0*f2*f2/(f1*f1-f2*f2) * (L1 - L2);
     229      okFlag = true;
    229230    }
    230231    if (obs.p2() != 0.0) {
    231232      newObs->MP2 = obs.p2() - L2 - 2.0*f1*f1/(f1*f1-f2*f2) * (L1 - L2);
    232     }
     233      okFlag = true;
     234    }
     235  }
     236
     237  // Remember the Observation
     238  // ------------------------
     239  if (okFlag) {
     240    anaObs << newObs;
     241  }
     242  else {
     243    delete newObs;
     244    return;
    233245  }
    234246
Note: See TracChangeset for help on using the changeset viewer.