Changeset 5914 in ntrip


Ignore:
Timestamp:
Aug 12, 2014, 4:51:03 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.cpp

    r5877 r5914  
    8282  _tides    = new t_tides();
    8383
    84   if (!_opt->_antexFile.empty()) {
    85     _antex = new bncAntex(_opt->_antexFile.c_str());
     84  if (!_opt->_antexFileName.empty()) {
     85    _antex = new bncAntex(_opt->_antexFileName.c_str());
    8686  }
    8787  else {
     
    206206                                  ColumnVector& xyzc, bool print) {
    207207
    208   t_lc::type tLC = (OPT->dualFreqRequired() ? t_lc::cIF : t_lc::c1);
     208  t_lc::type tLC = (OPT->dualFreqRequired('G') ? t_lc::cIF : t_lc::c1);
    209209
    210210  while (true) {
     
    276276double t_pppClient::cmpOffGG(vector<t_pppSatObs*>& obsVector) {
    277277
    278   t_lc::type tLC   = (OPT->dualFreqRequired() ? t_lc::cIF : t_lc::c1);
     278  t_lc::type tLC   = (OPT->dualFreqRequired('R') ? t_lc::cIF : t_lc::c1);
    279279  double     offGG = 0.0;
    280280
  • trunk/BNC/src/PPP/pppEphPool.cpp

    r5828 r5914  
    133133  for (unsigned ii = 0; ii < _ephs.size(); ii++) {
    134134    t_eph* eph = _ephs[ii];
    135     t_irc irc = eph->getCrd(tt, xc, vv, OPT->corrRequired());
     135    t_irc irc = eph->getCrd(tt, xc, vv, OPT->useOrbClkCorr());
    136136    if (irc == success) {
    137137      if (eph->prn().system() == 'R') {
  • trunk/BNC/src/PPP/pppParlist.cpp

    r5877 r5914  
    7474   case crdX:
    7575     _epoSpec = true;
    76      _sigma0  = OPT->_sigCrd[0];
     76     _sigma0  = OPT->_aprSigCrd[0];
    7777     break;
    7878   case crdY:
    7979     _epoSpec = true;
    80      _sigma0  = OPT->_sigCrd[1];
     80     _sigma0  = OPT->_aprSigCrd[1];
    8181     break;
    8282   case crdZ:
    8383     _epoSpec = true;
    84      _sigma0  = OPT->_sigCrd[2];
     84     _sigma0  = OPT->_aprSigCrd[2];
    8585     break;
    8686   case clkR:
     
    106106     _sigma0  = 100.0;
    107107     break;
    108    case offGG:
    109      _epoSpec = true;
    110      _sigma0  = 1000.0;
    111      _x0      = PPP_CLIENT->offGG();
    112      break;
    113108   case trp:
    114109     _epoSpec = false;
    115      _sigma0  = OPT->_sigTropo;
    116      _noise   = OPT->_noiseTropo;
    117      break;
    118    case bias:
    119      _epoSpec = true;
    120      _sigma0  = 10.0;
     110     _sigma0  = OPT->_aprSigTrp;
     111     _noise   = OPT->_noiseTrp;
    121112     break;
    122113  }
     
    136127  // Special Case - Melbourne-Wuebbena
    137128  // ---------------------------------
    138   if (tLC == t_lc::MW && _type != amb && _type != bias) {
     129  if (tLC == t_lc::MW && _type != amb) {
    139130    return 0.0;
    140131  }
     
    152143  case clkR:
    153144    return 1.0;
    154   case offGG:
    155     return (obs->prn().system() == 'R') ? 1.0 : 0.0;
    156145  case amb:
    157146    if (obs->prn() == _prn) {
     
    176165  case trp:
    177166    return 1.0 / sin(obs->eleSat());
    178   case bias:
    179     if (tLC == _tLC && obs->prn().system() == _prn.system()) {
    180       return 1.0;
    181     }
    182     else {
    183       return 0.0;
    184     }
    185167  }
    186168
     
    208190    ss << "AMB " << left << setw(3) << t_lc::toString(_tLC) << right << ' ' << _prn.toString();
    209191    break;
    210   case offGG:
    211     ss << "OGG        ";
    212     break;
    213192  case trp:
    214193    ss << "TRP        ";
    215     break;
    216   case bias:
    217     ss << "BIAS " << _prn.system() << ' ' << left << setw(3) << t_lc::toString(_tLC);
    218194    break;
    219195  }
     
    310286  required.push_back(new t_pppParam(t_pppParam::clkR, t_prn(), t_lc::dummy));
    311287
    312   // GPS-Glonass Clock Offset
    313   // ------------------------
    314   if (OPT->useGlonass()) {
    315     required.push_back(new t_pppParam(t_pppParam::offGG, t_prn(), t_lc::dummy));
    316   }
    317 
    318   // Receiver Biases
    319   // ---------------
    320   for (unsigned ii = 0; ii < OPT->_estBias.size(); ii++) {
    321     const t_pppOptions::t_optBias& optBias = OPT->_estBias[ii];
    322     required.push_back(new t_pppParam(t_pppParam::bias, t_prn(optBias._system, 1), optBias._tLC));
    323   }
    324 
    325288  // Troposphere
    326289  // -----------
    327   if (OPT->estTropo()) {
     290  if (OPT->estTrp()) {
    328291    required.push_back(new t_pppParam(t_pppParam::trp, t_prn(), t_lc::dummy));
    329292  }
  • trunk/BNC/src/PPP/pppParlist.h

    r5877 r5914  
    1414class t_pppParam {
    1515 public:
    16   enum e_type {crdX, crdY, crdZ, clkR, amb, offGG, trp, bias};
     16  enum e_type {crdX, crdY, crdZ, clkR, amb, trp};
    1717
    1818  t_pppParam(e_type type, const t_prn& prn, t_lc::type tLC,
Note: See TracChangeset for help on using the changeset viewer.