Changeset 7299 in ntrip


Ignore:
Timestamp:
Sep 23, 2015, 5:21:35 PM (9 years ago)
Author:
stuerze
Message:

some additions, to allow PPP with the internal combination result

Location:
trunk/BNC/src
Files:
3 edited

Legend:

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

    r7297 r7299  
    123123
    124124  return outStr;
     125}
     126
     127// Singleton
     128////////////////////////////////////////////////////////////////////////////
     129bncComb* bncComb::instance() {
     130  static bncComb _bncComb;
     131  return &_bncComb;
    125132}
    126133
     
    857864      for (int iPar = 1; iPar <= _params.size(); iPar++) {
    858865        cmbParam* pp = _params[iPar-1];
    859         if ( AA.Column(iPar).maximum_absolute_value() > 0.0 &&
     866        if ( pp &&
     867             AA.Column(iPar).maximum_absolute_value() > 0.0 &&
    860868             pp->type == cmbParam::offACSat                 &&
    861869             pp->prn == prn) {
     
    871879//        for (int iPar = 1; iPar <= _params.size(); iPar++) {
    872880//          cmbParam* pp = _params[iPar-1];
    873 //          if ( AA.Column(iPar).maximum_absolute_value() > 0.0 &&
     881//          if ( pp &&
     882//               AA.Column(iPar).maximum_absolute_value() > 0.0 &&
    874883//               pp->type == cmbParam::offACSat                 &&
    875884//               pp->prn == prn) {
  • trunk/BNC/src/combination/bnccomb.h

    r7085 r7299  
    1717  bncComb();
    1818  virtual ~bncComb();
     19  static bncComb* instance();
    1920  int  nStreams() const {return _ACs.size();}
    2021
     
    127128};
    128129
     130#define BNC_CMB (bncComb::instance())
     131
    129132#endif
  • trunk/BNC/src/pppRun.cpp

    r7288 r7299  
    5757#include "rinex/rnxnavfile.h"
    5858#include "rinex/corrfile.h"
     59#include "combination/bnccomb.h"
    5960
    6061using namespace BNC_PPP;
     
    115116    connect(BNC_CORE, SIGNAL(newPhaseBiases(QList<t_satPhaseBias>)),
    116117            this, SLOT(slotNewPhaseBiases(QList<t_satPhaseBias>)),conType);
     118
     119    connect(BNC_CMB, SIGNAL(newOrbCorrections(QList<t_orbCorr>)),
     120            this, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)),conType);
     121
     122    connect(BNC_CMB, SIGNAL(newClkCorrections(QList<t_clkCorr>)),
     123            this, SLOT(slotNewClkCorrections(QList<t_clkCorr>)),conType);
    117124  }
    118125  else {
     
    369376  }
    370377
    371   if (_opt->_realTime) {
     378  if (_opt->_realTime) { qDebug() << clkCorr[0]._staID.c_str();
    372379    if (_opt->_corrMount.empty() || _opt->_corrMount != clkCorr[0]._staID) {
    373380      return;
Note: See TracChangeset for help on using the changeset viewer.