Changeset 3319 in ntrip


Ignore:
Timestamp:
Jun 27, 2011, 6:18:10 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3317 r3319  
    12291229    ll(iObs)      = satData->L3 - cmpValue(satData, true);
    12301230    PP(iObs,iObs) = 1.0 / (_sigL3 * _sigL3) / (ellWgtCoef * ellWgtCoef);
     1231    if (satData->system() == 'R') {
     1232      PP(iObs,iObs) /= 4.0;
     1233    }
    12311234    for (int iPar = 1; iPar <= _params.size(); iPar++) {
    12321235      if (_params[iPar-1]->type == bncParam::AMB_L3 &&
  • trunk/BNC/bncpppclient.cpp

    r2968 r3319  
    376376          if      (eLast && eLast->IOD() == cc->iod) {
    377377            eLast->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data());
    378             applyCorr(tt, cc, xc, vv);
    379             return success;
     378            return applyCorr(tt, cc, xc, vv);
    380379          }
    381380          else if (ePrev && ePrev->IOD() == cc->iod) {
    382381            ePrev->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data());
    383             applyCorr(tt, cc, xc, vv);
    384             return success;
     382            return applyCorr(tt, cc, xc, vv);
    385383          }
    386384        }
     
    400398//
    401399////////////////////////////////////////////////////////////////////////////
    402 void bncPPPclient::applyCorr(const bncTime& tt, const t_corr* cc,
     400t_irc bncPPPclient::applyCorr(const bncTime& tt, const t_corr* cc,
    403401                             ColumnVector& xc, ColumnVector& vv) {
    404402  ColumnVector dx(3);
     
    406404  double dt = tt - cc->tt;
    407405  ColumnVector raoHlp = cc->rao + cc->dotRao * dt + cc->dotDotRao * dt * dt;
     406
     407  if (raoHlp.norm_Frobenius() > 20.0) {
     408    return failure;
     409  }
    408410
    409411  RSW_to_XYZ(xc.Rows(1,3), vv, raoHlp, dx);
     
    413415  xc[2] -= dx[2];
    414416  xc[3] += cc->dClk + cc->dotDClk * dt + cc->dotDotDClk * dt * dt;
     417
     418  return success;
    415419}
    416420
  • trunk/BNC/bncpppclient.h

    r3051 r3319  
    113113  ~bncPPPclient();
    114114  void putNewObs(const t_obs& pp);
    115   static void applyCorr(const bncTime& tt, const t_corr* cc, ColumnVector& xc,
    116                         ColumnVector& vv);
     115  static t_irc applyCorr(const bncTime& tt, const t_corr* cc, ColumnVector& xc,
     116                         ColumnVector& vv);
    117117
    118118 public slots:
Note: See TracChangeset for help on using the changeset viewer.