Changeset 3573 in ntrip for branches


Ignore:
Timestamp:
Dec 25, 2011, 7:50:18 PM (12 years ago)
Author:
mervart
Message:
 
Location:
branches/BNC_LM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_LM/RTCM/GPSDecoder.h

    r3342 r3573  
    3333
    3434#include "bncconst.h"
     35#include "bncrinex.h"
    3536
    3637class t_obs {
     
    119120class GPSDecoder {
    120121 public:
    121   virtual t_irc Decode(char* buffer, int bufLen, std::vector<std::string>& errmsg) = 0;
     122  GPSDecoder();
    122123
    123   virtual ~GPSDecoder() {}
     124  virtual ~GPSDecoder() {delete _rnx;}
     125
     126  virtual t_irc Decode(char* buffer, int bufLen,
     127                       std::vector<std::string>& errmsg) = 0;
     128
    124129
    125130  virtual int corrGPSEpochTime() const {return -1;}
     131
     132  void initRinex(const QByteArray& staID, const QUrl& mountPoint,
     133                 const QByteArray& latitude, const QByteArray& longitude,
     134                 const QByteArray& nmea, const QByteArray& ntripVersion);
     135
     136  void dumpRinexEpoch(const t_obs& obs, const QByteArray& format);
     137
     138  void setRinexReconnectFlag(bool flag);
    126139
    127140  struct t_antInfo {
     
    145158
    146159  QList<t_obs>     _obsList;
    147   QList<int>       _typeList;  // RTCM   message types
    148   QStringList      _antType;   // RTCM   antenna descriptor
    149   QList<t_antInfo> _antList;   // RTCM   antenna XYZ
     160  QList<int>       _typeList;  // RTCM message types
     161  QStringList      _antType;   // RTCM antenna descriptor
     162  QList<t_antInfo> _antList;   // RTCM antenna XYZ
     163  bncRinex*        _rnx;       // RINEX writer
    150164};
    151165
  • branches/BNC_LM/bnc.pro

    r3504 r3573  
    8282          upload/bncrtnetuploadcaster.cpp upload/bnccustomtrafo.cpp   \
    8383          upload/bncephuploadcaster.cpp                               \
    84           RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
     84          RTCM/GPSDecoder.cpp RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp    \
    8585          RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp                     \
    8686          RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex/rtcm3torinex.c    \
  • branches/BNC_LM/bncgetthread.cpp

    r3572 r3573  
    317317  msleep(100); //sleep 0.1 sec
    318318 
    319 ////  _decoder->initRinex(_staID, _mountPoint, _latitude, _longitude,
    320 ////                               _nmea, _ntripVersion);
     319  _decoder->initRinex(_staID, _mountPoint, _latitude, _longitude,
     320                               _nmea, _ntripVersion);
    321321
    322322  if (_rawFile) {
     
    542542        }
    543543
    544         ////        decoder()->dumpRinexEpoch(obs, _format);
     544        decoder()->dumpRinexEpoch(obs, _format);
    545545
    546546        // PPP Client
     
    585585        itDec.next();
    586586        GPSDecoder* decoder = itDec.value();
    587         ///        decoder->setRinexReconnectFlag(false);
     587        decoder->setRinexReconnectFlag(false);
    588588      }
    589589    }
    590590    else {
    591       ///      _decoder->setRinexReconnectFlag(false);
     591      _decoder->setRinexReconnectFlag(false);
    592592    }
    593593    return success;
     
    656656      itDec.next();
    657657      GPSDecoder* decoder = itDec.value();
    658       ///      decoder->setRinexReconnectFlag(false);
     658      decoder->setRinexReconnectFlag(false);
    659659    }
    660660  }
    661661  else {
    662     ///   _decoder->setRinexReconnectFlag(false);
     662   _decoder->setRinexReconnectFlag(false);
    663663  }
    664664
Note: See TracChangeset for help on using the changeset viewer.