Ignore:
Timestamp:
Aug 2, 2014, 4:23:36 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r5585 r5742  
    2929#include "bncantex.h"
    3030#include "bnctides.h"
     31#include "t_prn.h"
    3132
    3233const double sig0_offAC    = 1000.0;
     
    3637
    3738const double sigObs        =   0.05;
    38 
    39 const int MAXPRN_GLONASS = 24;
    4039
    4140using namespace std;
     
    194193      cmbAC* AC = it.next();
    195194      _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++) {
    197196        QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
    198197        _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar,
     
    201200      if (_useGlonass) {
    202201        _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++) {
    204203          QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
    205204          _params.push_back(new cmbParam(cmbParam::offACSat, ++nextPar,
     
    208207      }
    209208    }
    210     for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
     209    for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) {
    211210      QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
    212211      _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn));
    213212    }
    214213    if (_useGlonass) {
    215       for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
     214      for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
    216215        QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
    217216        _params.push_back(new cmbParam(cmbParam::clkSat, ++nextPar, "", prn));
     
    763762  }
    764763
    765   int MAXPRN = MAXPRN_GPS;
     764  int maxSat = t_prn::MAXPRN_GPS;
    766765//  if (_useGlonass) {
    767 //    MAXPRN = MAXPRN_GPS + MAXPRN_GLONASS;
     766//    maxSat = t_prn::MAXPRN_GPS + t_prn::MAXPRN_GLONASS;
    768767//  }
    769768
    770   const int nCon = (_method == filter) ? 1 + MAXPRN : 0;
     769  const int nCon = (_method == filter) ? 1 + maxSat : 0;
    771770
    772771  AA.ReSize(nObs+nCon, nPar);  AA = 0.0;
     
    808807    }
    809808    int iCond = 1;
    810     for (int iGps = 1; iGps <= MAXPRN_GPS; iGps++) {
     809    for (int iGps = 1; iGps <= t_prn::MAXPRN_GPS; iGps++) {
    811810      QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
    812811      ++iCond;
     
    822821    }
    823822//    if (_useGlonass) {
    824 //      for (int iGlo = 1; iGlo <= MAXPRN_GLONASS; iGlo++) {
     823//      for (int iGlo = 1; iGlo <= t_prn::MAXPRN_GLONASS; iGlo++) {
    825824//        QString prn = QString("R%1").arg(iGlo, 2, 10, QChar('0'));
    826825//        ++iCond;
Note: See TracChangeset for help on using the changeset viewer.