Changeset 5742 in ntrip for trunk/BNC/src/combination
- Timestamp:
- Aug 2, 2014, 4:23:36 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/combination/bnccomb.cpp
r5585 r5742 29 29 #include "bncantex.h" 30 30 #include "bnctides.h" 31 #include "t_prn.h" 31 32 32 33 const double sig0_offAC = 1000.0; … … 36 37 37 38 const double sigObs = 0.05; 38 39 const int MAXPRN_GLONASS = 24;40 39 41 40 using namespace std; … … 194 193 cmbAC* AC = it.next(); 195 194 _params.push_back(new cmbParam(cmbParam::offACgps, ++nextPar, AC->name, "")); 196 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) { 195 for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) { 197 196 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 198 197 _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar, … … 201 200 if (_useGlonass) { 202 201 _params.push_back(new cmbParam(cmbParam::offACglo, ++nextPar, AC->name, "")); 203 for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) { 202 for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) { 204 203 QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0')); 205 204 _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar, … … 208 207 } 209 208 } 210 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) { 209 for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) { 211 210 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 212 211 _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn)); 213 212 } 214 213 if (_useGlonass) { 215 for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) { 214 for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) { 216 215 QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0')); 217 216 _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn)); … … 763 762 } 764 763 765 int MAXPRN =MAXPRN_GPS;764 int maxSat = t_prn::MAXPRN_GPS; 766 765 // if (_useGlonass) { 767 // MAXPRN =MAXPRN_GPS + MAXPRN_GLONASS;766 // maxSat = t_prn::MAXPRN_GPS + t_prn::MAXPRN_GLONASS; 768 767 // } 769 768 770 const int nCon = (_method == filter) ? 1 + MAXPRN: 0;769 const int nCon = (_method == filter) ? 1 + maxSat : 0; 771 770 772 771 AA.ReSize(nObs+nCon, nPar); AA = 0.0; … … 808 807 } 809 808 int iCond = 1; 810 for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) { 809 for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) { 811 810 QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0')); 812 811 ++iCond; … … 822 821 } 823 822 // if (_useGlonass) { 824 // for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) { 823 // for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) { 825 824 // QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0')); 826 825 // ++iCond;
Note:
See TracChangeset
for help on using the changeset viewer.