Changeset 423 in ntrip


Ignore:
Timestamp:
Mar 28, 2007, 2:55:26 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.pro

    r394 r423  
    1414HEADERS = bnchelp.html bncgetthread.h    bncwindow.h   bnctabledlg.h  \
    1515          bnccaster.h bncrinex.h bncapp.h bncutils.h   bnchlpdlg.h    \
    16           bncconst.h bnchtml.h bnctableitem.h                         \
     16          bncconst.h bnchtml.h bnctableitem.h bnczerodecoder.h        \
    1717          RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
    1818          RTCM3/RTCM3Decoder.h RTCM3/rtcm3torinex.h                   \
     
    2323          bnccaster.cpp bncrinex.cpp bncapp.cpp bncutils.cpp          \
    2424          bncconst.cpp bnchtml.cpp bnchlpdlg.cpp bnctableitem.cpp     \
     25          bnczerodecoder.cpp                                          \
    2526          RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
    2627          RTCM3/RTCM3Decoder.cpp RTCM3/rtcm3torinex.cpp               \
  • trunk/BNC/bncgetthread.cpp

    r410 r423  
    5252#include "bncutils.h"
    5353#include "bncrinex.h"
     54#include "bnczerodecoder.h"
    5455
    5556#include "RTCM/RTCM2Decoder.h"
     
    6768                           const QByteArray& nmea, int iMount) {
    6869  _decoder    = 0;
    69   _zeroDecoder= false;
    7070  _mountPoint = mountPoint;
    7171  _staID      = mountPoint.path().mid(1).toAscii();
     
    302302  // Instantiate the filter
    303303  // ----------------------
    304   if (!_decoder && !_zeroDecoder) {
     304  if (!_decoder) {
    305305    if      (_format.indexOf("RTCM_2") != -1) {
    306306      emit(newMessage("Get Data: " + _staID + " in RTCM 2.x format"));
     
    315315      _decoder = new RTIGSDecoder();
    316316    }
    317     else if (_format.indexOf("SP3") != -1) {
    318       emit(newMessage("Get Data in SP3 format"));
    319       _zeroDecoder = true;
     317    else if (_format.indexOf("SP3") != -1 || _format.indexOf("ASCII") != -1) {
     318      emit(newMessage("Get Data in ASCII format"));
     319      _decoder = new bncZeroDecoder();
    320320    }
    321321    else {
     
    358358        _socket->read(data, nBytes);
    359359
    360         if (_zeroDecoder) {
    361           cout.write(data, nBytes);
    362           continue;
    363         }
    364 
    365360        _decoder->Decode(data, nBytes);
    366361        delete [] data;
     362       
    367363        for (list<Observation*>::iterator it = _decoder->_obsList.begin();
    368364             it != _decoder->_obsList.end(); it++) {
  • trunk/BNC/bncgetthread.h

    r408 r423  
    7676   int         _nextSleep;
    7777   int         _iMount;
    78    bool        _zeroDecoder;
    7978   int         _samplingRate;
    8079   bncRinex*   _rnx;
Note: See TracChangeset for help on using the changeset viewer.