Changeset 3450 in ntrip for trunk/BNC


Ignore:
Timestamp:
Sep 22, 2011, 5:17:39 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/combination/bnccomb.cpp

    r3449 r3450  
    3030#include "bnctides.h"
    3131
    32 const int moduloTime = 10;
    33 
    34 const double sig0_offAC    = 1000.0;
    35 const double sig0_offACSat =  100.0;
    36 const double sigP_offACSat =    0.0;
    37 const double sig0_clkSat   =  100.0;
     32using namespace std;
    3833
    3934const int MAXPRN_GPS = 32;
    40 
    41 using namespace std;
    4235
    4336// Constructor
     
    5346
    5447  if      (type == offAC) {
    55     epoSpec = true;
    56     sig0    = sig0_offAC;
    57     sigP    = sig0;
     48    sig_0 = 1000.0;
     49    sig_P = 1000.0;
    5850  }
    5951  else if (type == offACSat) {
    60     epoSpec = false;
    61     sig0    = sig0_offACSat;
    62     sigP    = sigP_offACSat;
     52    sig_0 = 100.0;
     53    sig_P =   0.0;
    6354  }
    6455  else if (type == clkSat) {
    65     epoSpec = true;
    66     sig0    = sig0_clkSat;
    67     sigP    = sig0;
     56    sig_0 = 100.0;
     57    sig_P = 100.0;
    6858  }
    6959}
     
    166156  for (int iPar = 1; iPar <= _params.size(); iPar++) {
    167157    cmbParam* pp = _params[iPar-1];
    168     _QQ(iPar,iPar) = pp->sig0 * pp->sig0;
     158    _QQ(iPar,iPar) = pp->sig_0 * pp->sig_0;
    169159  }
    170160
     
    243233  // Check Modulo Time
    244234  // -----------------
     235  const int moduloTime = 10;
    245236  if (int(newCorr->tt.gpssec()) % moduloTime != 0.0) {
    246237    delete newCorr;
     
    389380  for (int iPar = 1; iPar <= _params.size(); iPar++) {
    390381    cmbParam* pp = _params[iPar-1];
    391     if (pp->epoSpec) {
    392       pp->xx = 0.0;
    393       _QQ.Row(iPar)    = 0.0;
    394       _QQ.Column(iPar) = 0.0;
    395       _QQ(iPar,iPar) = pp->sig0 * pp->sig0;
    396     }
    397     else {
    398       _QQ(iPar,iPar) += pp->sigP * pp->sigP;
    399     }
     382    _QQ(iPar,iPar) += pp->sig_P * pp->sig_P;
    400383    x0(iPar) = pp->xx;
    401384  }
     
    486469          QQ_sav.Row(iPar)    = 0.0;
    487470          QQ_sav.Column(iPar) = 0.0;
    488           QQ_sav(iPar,iPar)   = pp->sig0 * pp->sig0;
     471          QQ_sav(iPar,iPar)   = pp->sig_0 * pp->sig_0;
    489472        }
    490473      }
  • trunk/BNC/combination/bnccomb.h

    r3448 r3450  
    2323  QString prn;
    2424  double  xx;
    25   double  sig0;
    26   double  sigP;
    27   bool    epoSpec;
     25  double  sig_0;
     26  double  sig_P;
    2827};
    2928
Note: See TracChangeset for help on using the changeset viewer.