Index: trunk/BNC/src/combination/bnccomb.cpp
===================================================================
--- trunk/BNC/src/combination/bnccomb.cpp	(revision 5585)
+++ trunk/BNC/src/combination/bnccomb.cpp	(revision 5742)
@@ -29,4 +29,5 @@
 #include "bncantex.h"
 #include "bnctides.h"
+#include "t_prn.h"
 
 const double sig0_offAC    = 1000.0;
@@ -36,6 +37,4 @@
 
 const double sigObs        =   0.05;
-
-const int MAXPRN_GLONASS = 24;
 
 using namespace std;
@@ -194,5 +193,5 @@
       cmbAC* AC = it.next();
       _params.push_back(new cmbParam(cmbParam::offACgps, ++nextPar, AC->name, ""));
-      for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
+      for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) {
         QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
         _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar, 
@@ -201,5 +200,5 @@
       if (_useGlonass) {
         _params.push_back(new cmbParam(cmbParam::offACglo, ++nextPar, AC->name, ""));
-        for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
+        for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
           QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
           _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar, 
@@ -208,10 +207,10 @@
       }
     }
-    for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
+    for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) {
       QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
       _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn));
     }
     if (_useGlonass) {
-      for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
+      for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
         QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
         _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn));
@@ -763,10 +762,10 @@
   }
 
-  int MAXPRN = MAXPRN_GPS;
+  int maxSat = t_prn::MAXPRN_GPS;
 //  if (_useGlonass) {
-//    MAXPRN = MAXPRN_GPS + MAXPRN_GLONASS;
+//    maxSat = t_prn::MAXPRN_GPS + t_prn::MAXPRN_GLONASS;
 //  }
 
-  const int nCon = (_method == filter) ? 1 + MAXPRN : 0;
+  const int nCon = (_method == filter) ? 1 + maxSat : 0;
 
   AA.ReSize(nObs+nCon, nPar);  AA = 0.0;
@@ -808,5 +807,5 @@
     }
     int iCond = 1;
-    for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
+    for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) {
       QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
       ++iCond;
@@ -822,5 +821,5 @@
     }
 //    if (_useGlonass) {
-//      for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
+//      for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
 //        QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
 //        ++iCond;
