Changeset 2357 in ntrip


Ignore:
Timestamp:
Mar 9, 2010, 8:26:55 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2342 r2357  
    6868  }
    6969
     70  if (settings.value("pppSPP").toString() == "PPP") {
     71    _pppMode = true;
     72  }
     73  else {
     74    _pppMode = false;
     75  }
     76
    7077  connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)),
    7178          this, SLOT(slotNewEphGPS(gpsephemeris)));
     
    375382////////////////////////////////////////////////////////////////////////////
    376383t_irc bncPPPclient::getSatPos(const bncTime& tt, const QString& prn,
    377                               ColumnVector& xc, ColumnVector& vv, bool& corr) {
    378 
    379 //const bool   CORR_REQUIRED = true;
    380   bncSettings settings;
     384                              ColumnVector& xc, ColumnVector& vv) {
     385
    381386  const double MAXAGE        = 120.0;
    382 
    383 
    384   corr = false;
    385387
    386388  if (_eph.contains(prn)) {
     
    388390    ee->position(tt.gpsw(), tt.gpssec(), xc.data(), vv.data());
    389391
    390 //  if (CORR_REQUIRED) {
    391     if (settings.value("pppSPP").toString() == "PPP") {
     392    if (_pppMode) {
    392393      if (_corr.contains(prn)) {
    393394        t_corr* cc = _corr.value(prn);
    394395        if (ee->IOD() == cc->iod && (tt - cc->tt) < MAXAGE) {
    395           corr = true;
    396396          applyCorr(tt, cc, xc, vv);
    397397          return success;
     
    443443    ColumnVector xc(4);
    444444    ColumnVector vv(3);
    445     bool corr = false;
    446     if (getSatPos(ToT, satData->prn, xc, vv, corr) != success) {
     445    if (getSatPos(ToT, satData->prn, xc, vv) != success) {
    447446      return failure;
    448447    }
     
    455454      satData->vv      = vv;
    456455      satData->clk     = clkSat * t_CST::c;
    457       satData->clkCorr = corr;
    458456      return success;
    459457    }
  • trunk/BNC/bncpppclient.h

    r2317 r2357  
    5252  ColumnVector vv;
    5353  double       clk;
    54   bool         clkCorr;
    5554  double       eleSat;
    5655  double       azSat;
     
    127126 private:
    128127  t_irc getSatPos(const bncTime& tt, const QString& prn,
    129                   ColumnVector& xc, ColumnVector& vv, bool& corr);
     128                  ColumnVector& xc, ColumnVector& vv);
    130129  void processEpoch();
    131130  void applyCorr(const bncTime& tt, const t_corr* cc, ColumnVector& xc,
     
    141140  bncModel*              _model;
    142141  bool                   _useGlonass;
     142  bool                   _pppMode;
    143143};
    144144
Note: See TracChangeset for help on using the changeset viewer.