Changeset 2991 in ntrip


Ignore:
Timestamp:
Feb 8, 2011, 6:48:55 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r2990 r2991  
    113113  // ---------------------
    114114  int nextPar = 0;
     115  QMapIterator<QString, cmbAC*> it(_ACs);
     116  while (it.hasNext()) {
     117    it.next();
     118    cmbAC* AC = it.value();
     119    _params.push_back(new cmbParam(cmbParam::AC_offset, ++nextPar, AC->name, ""));
     120  }
     121  it.toFront();
     122  while (it.hasNext()) {
     123    it.next();
     124    cmbAC* AC = it.value();
     125    for (int iGps = 1; iGps <= 32; iGps++) {
     126      QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
     127      _params.push_back(new cmbParam(cmbParam::Sat_offset, ++nextPar, AC->name, prn));
     128    }
     129  }
    115130  for (int iGps = 1; iGps <= 32; iGps++) {
    116131    QString prn = QString("G%1").arg(iGps, 2, 10, QChar('0'));
    117132    _params.push_back(new cmbParam(cmbParam::clk, ++nextPar, "", prn));
    118     QMapIterator<QString, cmbAC*> it(_ACs);
    119     while (it.hasNext()) {
    120       it.next();
    121       cmbAC* AC = it.value();
    122       if (iGps == 1) {
    123         _params.push_back(new cmbParam(cmbParam::AC_offset, ++nextPar, AC->name, ""));
    124       }
    125       _params.push_back(new cmbParam(cmbParam::Sat_offset, ++nextPar, AC->name, prn));
    126     }
    127133  }
    128134
     
    364370  QTextStream out(&_log, QIODevice::WriteOnly);
    365371
    366   out <<                  "Combination:" << endl
    367       << "-----------------------------" << endl;
     372  out <<                   "Combination:" << endl
     373      << "------------------------------" << endl;
    368374
    369375  // Predict Parameters Values, Add White Noise
     
    458464      out.setRealNumberPrecision(4);
    459465      out << pp->toString() << " "
    460           << pp->xx << " +- " << _QQ(pp->index,pp->index) << endl;
     466          << pp->xx << " +- " << sqrt(_QQ(pp->index,pp->index)) << endl;
    461467    }
    462468  }
Note: See TracChangeset for help on using the changeset viewer.