Changeset 3319 in ntrip for trunk/BNC/bncpppclient.cpp


Ignore:
Timestamp:
Jun 27, 2011, 6:18:10 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.