Changeset 3483 in ntrip
- Timestamp:
- Oct 30, 2011, 2:19:33 PM (13 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/combination/bnccomb.cpp ¶
r3482 r3483 39 39 const double sigObs = 0.05; 40 40 41 const int MAXPRN_GPS = 32; 41 const int MAXPRN_GPS = 32; 42 const int MAXPRN_GLONASS = 24; 42 43 43 44 using namespace std; … … 178 179 AC->name, prn)); 179 180 } 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 } 180 188 } 181 189 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) { 182 190 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 183 191 _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 } 184 198 } 185 199 … … 213 227 _MAXRES = 999.0; 214 228 } 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 } 215 238 } 216 239 … … 260 283 delete newCorr; 261 284 return; 285 } 286 287 // Check Glonass 288 // ------------- 289 if (!_useGlonass) { 290 if (newCorr->prn[0] == 'R') { 291 delete newCorr; 292 return; 293 } 262 294 } 263 295 … … 719 751 } 720 752 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; 722 759 723 760 AA.ReSize(nObs+nCon, nPar); AA = 0.0; … … 769 806 pp->prn == prn) { 770 807 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 } 771 823 } 772 824 } -
TabularUnified trunk/BNC/combination/bnccomb.h ¶
r3475 r3483 102 102 unsigned _masterMissingEpochs; 103 103 e_method _method; 104 bool _useGlonass; 104 105 }; 105 106
Note:
See TracChangeset
for help on using the changeset viewer.