Changeset 5748 in ntrip


Ignore:
Timestamp:
Aug 3, 2014, 10:13:50 AM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/filter.cpp

    r5747 r5748  
    44#include <newmat.h>
    55#include <newmatio.h>
     6#include <newmatap.h>
    67
    78#include "filter.h"
     
    1011#include "station.h"
    1112#include "pppClient.h"
     13#include "bncmodel.h"
    1214
    1315using namespace BNC;
     
    194196    // Check number of observations, truncate matrices
    195197    // -----------------------------------------------
    196     if (iObs+1 < OPT->minobs()) {
     198    if (iObs+1 < OPT->_minObs) {
    197199      return failure;
    198200    }
     
    203205    // Kalman update step
    204206    // ------------------
    205     kalman(_QFlt, _xFlt, AA, ll, Sl);
     207    bncModel::kalman(AA, ll, Sl, _QFlt, _xFlt);
    206208
    207209    // Check Residuals
     
    214216      const t_lc::type tLC = usedTypes[ii];
    215217      double res = fabs(vv[ii]);
    216       if (res >
    217           (t_lc::includesCode(tLC) ? OPT->maxResCode() : OPT->maxResPhase())) {
     218      if (res > OPT->maxRes(tLC)) {
    218219        if (res > fabs(maxOutlier)) {
    219220          maxOutlier      = vv[ii];
     
    262263          if (tLC == LCs[jj]) {
    263264            obs->setRes(tLC, vv[ii]);
    264             if (OPT->logLevel() > 1) {
    265               LOG << epoTimeStr << " RES "
    266                   << left << setw(3) << t_lc::toString(tLC) << right << ' '
    267                   << obs->prn().toString() << ' '
    268                   << setw(8) << setprecision(4) << vv[ii] << endl;
    269             }
     265            LOG << epoTimeStr << " RES "
     266                << left << setw(3) << t_lc::toString(tLC) << right << ' '
     267                << obs->prn().toString() << ' '
     268                << setw(8) << setprecision(4) << vv[ii] << endl;
    270269          }
    271270        }
  • trunk/BNC/src/PPP/options.h

    r5742 r5748  
    1616  bool useGlonass();
    1717  bool xyzAprRoverSet();
     18  std::vector<t_lc::type> LCs();
     19  double maxRes(t_lc::type tLC);
    1820
    1921  bool         _realTime;
Note: See TracChangeset for help on using the changeset viewer.