Changeset 3483 in ntrip


Ignore:
Timestamp:
Oct 30, 2011, 2:19:33 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/combination
Files:
2 edited

Legend:

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

    r3482 r3483  
    3939const double sigObs        =   0.05;
    4040
    41 const int MAXPRN_GPS = 32;
     41const int MAXPRN_GPS     = 32;
     42const int MAXPRN_GLONASS = 24;
    4243
    4344using namespace std;
     
    178179                                       AC->name, prn));
    179180      }
     181      if (_useGlonass) {
     182        for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
     183          QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
     184          _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar,
     185                                         AC->name, prn));
     186        }
     187      }
    180188    }
    181189    for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
    182190      QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
    183191      _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn));
     192    }
     193    if (_useGlonass) {
     194      for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
     195        QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
     196        _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn));
     197      }
    184198    }
    185199   
     
    213227    _MAXRES = 999.0;
    214228  }
     229
     230  // Use Glonass
     231  // -----------
     232  if ( Qt::CheckState(settings.value("pppGLONASS").toInt()) == Qt::Checked) {
     233    _useGlonass = true;
     234  }
     235  else {
     236    _useGlonass = false;
     237  }
    215238}
    216239
     
    260283    delete newCorr;
    261284    return;
     285  }
     286
     287  // Check Glonass
     288  // -------------
     289  if (!_useGlonass) {
     290    if (newCorr->prn[0] == 'R') {
     291      delete newCorr;
     292      return;
     293    }
    262294  }
    263295
     
    719751  }
    720752
    721   const int nCon = (_method == filter) ? 1 + MAXPRN_GPS : 0;
     753  int MAXPRN = MAXPRN_GPS;
     754  if (_useGlonass) {
     755    MAXPRN = MAXPRN_GPS + MAXPRN_GLONASS;
     756  }
     757
     758  const int nCon = (_method == filter) ? 1 + MAXPRN : 0;
    722759
    723760  AA.ReSize(nObs+nCon, nPar);  AA = 0.0;
     
    769806             pp->prn == prn) {
    770807          AA(nObs+iCond, iPar) = 1.0;
     808        }
     809      }
     810    }
     811    if (_useGlonass) {
     812      for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
     813        QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
     814        ++iCond;
     815        PP(nObs+iCond) = Ph;
     816        for (int iPar = 1; iPar <= _params.size(); iPar++) {
     817          cmbParam* pp = _params[iPar-1];
     818          if ( AA.Column(iPar).maximum_absolute_value() > 0.0 &&
     819               pp->type == cmbParam::offACSat                 &&
     820               pp->prn == prn) {
     821            AA(nObs+iCond, iPar) = 1.0;
     822          }
    771823        }
    772824      }
  • trunk/BNC/combination/bnccomb.h

    r3475 r3483  
    102102  unsigned                _masterMissingEpochs;
    103103  e_method                _method;
     104  bool                    _useGlonass;
    104105};
    105106
Note: See TracChangeset for help on using the changeset viewer.