Changeset 5569 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Nov 23, 2013, 6:50:41 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmodel.h

    r5157 r5569  
    9999                     SymmetricMatrix& QQ, ColumnVector& dx);
    100100
     101  void reset();
     102
    101103 private:
    102104  t_irc cmpBancroft(t_epoData* epoData);
    103   void   reset();
    104105  void   cmpEle(t_satData* satData);
    105106  void   addAmb(t_satData* satData);
  • trunk/BNC/src/bncpppclient.cpp

    r5568 r5569  
    7070  _model = new bncModel(this);
    7171
     72  _streamID[0] = -1;
     73  _streamID[1] = -1;
     74  _streamID[2] = -1;
     75
    7276  if (connectSlots) {
    7377    connect(this, SIGNAL(newMessage(QByteArray,bool)),
     
    537541
    538542  for (unsigned ii = 0; ii < 3; ii++) {
    539     if (_providerID.streamID[ii] != -1) {
     543    if (_streamID[ii] != -1) {
    540544      alreadySet = true;
    541545    }
    542546    if (corr->streamID[ii] != -1) {
    543       if (_providerID.streamID[ii] != corr->streamID[ii]) {
     547      if (_streamID[ii] != corr->streamID[ii]) {
    544548        different = true;
    545549      }
    546       _providerID.streamID[ii] = corr->streamID[ii];
     550      _streamID[ii] = corr->streamID[ii];
    547551    }
    548552  }
    549553   
    550554  if (alreadySet && different) {
    551     _providerID.reset = true;
    552   }
    553 }
     555    _model->reset();
     556  }
     557}
  • trunk/BNC/src/bncpppclient.h

    r5566 r5569  
    153153  };
    154154
    155   class t_providerID {
    156    public:
    157     t_providerID() {
    158       streamID[0] = -1;
    159       streamID[1] = -1;
    160       streamID[2] = -1;
    161       reset       = false;
    162     }
    163     int  streamID[3];
    164     bool reset;
    165   };
    166 
    167155  t_irc getSatPos(const bncTime& tt, const QString& prn,
    168156                  ColumnVector& xc, ColumnVector& vv);
     
    181169  bncModel*               _model;
    182170  QMap<QString, slipInfo> _slips;
    183   t_providerID            _providerID;
     171  int                     _streamID[3];
    184172};
    185173
Note: See TracChangeset for help on using the changeset viewer.