Changeset 2068 in ntrip


Ignore:
Timestamp:
Dec 1, 2009, 3:15:21 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2067 r2068  
    224224    ee->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data());
    225225
    226     if (_corr.contains(prn)) {
    227       t_corr* cc = _corr.value(prn);
    228       if (ee->IOD() == cc->iod && (tt - cc->tt) < MAXAGE) {
    229         corr = true;
    230         applyCorr(cc, xc, vv);
     226    if (CORR_REQUIRED) {
     227      if (_corr.contains(prn)) {
     228        t_corr* cc = _corr.value(prn);
     229        if (ee->IOD() == cc->iod && (tt - cc->tt) < MAXAGE) {
     230          corr = true;
     231          applyCorr(cc, xc, vv);
     232          return success;
     233        }
    231234      }
    232     }
    233     else {
    234       if (CORR_REQUIRED) {
    235         return failure;
    236       }
    237     }
    238 
     235      return failure;
     236    }
     237   
    239238    return success;
    240239  }
     
    254253  xc[2] += dx[2];
    255254  xc[3] += cc->dClk;
     255
     256  // Relativistic Correction
     257  // -----------------------
     258  xc[3] -= 2.0 * DotProduct(xc.Rows(1,3),vv) / t_CST::c / t_CST::c ;
    256259}
    257260
Note: See TracChangeset for help on using the changeset viewer.