Changeset 2386 in ntrip


Ignore:
Timestamp:
Mar 26, 2010, 11:47:04 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r1909 r2386  
    119119      decoded = true;
    120120      if (_mode == unknown) {
    121         _mode = corrections;
     121        /////        _mode = corrections;
    122122      }
    123123    }
     
    341341    }
    342342    if (_mode == unknown && decoded) {
    343       _mode = observations;
     343      ////      _mode = observations;
    344344    }
    345345  }
  • trunk/BNC/bncapp.cpp

    r2385 r2386  
    711711void bncApp::writeRawData(const QByteArray& data) {
    712712
    713 ////  QMutexLocker locker(&_mutex);
    714 ////
    715 ////  if (!_rawOutFile) {
    716 ////    QByteArray rawOutFileName = "./bnc.raw";
    717 ////    _rawOutFile = new QFile(rawOutFileName);
    718 ////    _rawOutFile->open(QIODevice::WriteOnly);
    719 ////  }
    720 ////
    721 ////  _rawOutFile->write(data);
    722 ////  _rawOutFile->flush();
    723 }
     713  QMutexLocker locker(&_mutex);
     714
     715  if (!_rawOutFile) {
     716    bncSettings settings;
     717    QString rawOutFileName = settings.value("rawOutFile").toString();
     718    _rawOutFile = new QFile(rawOutFileName);
     719    _rawOutFile->open(QIODevice::WriteOnly);
     720  }
     721
     722  if (_rawOutFile) {
     723    _rawOutFile->write(data);
     724    _rawOutFile->flush();
     725  }
     726}
  • trunk/BNC/bncgetthread.cpp

    r2385 r2386  
    8484                       rawInpFileName.lastIndexOf(QDir::separator())+1,4); 
    8585
     86  _rawOutput = false;
     87
    8688  initialize();
    8789}
     
    104106  _ntripVersion = ntripVersion;
    105107
     108  bncSettings settings;
     109  if (!settings.value("rawOutFile").toString().isEmpty()) {
     110    _rawOutput = true;
     111  }
     112
    106113  initialize();
    107114}
     
    410417      // Output Data
    411418      // -----------
    412       bncApp* app = (bncApp*) qApp;
    413       app->writeRawData(data);
     419      if (_rawOutput) {
     420        bncApp* app = (bncApp*) qApp;
     421        app->writeRawData(data);
     422      }
    414423
    415424      if (_serialPort) {
  • trunk/BNC/bncgetthread.h

    r2385 r2386  
    126126   QMutex          _mutex;
    127127   bncPPPclient*   _PPPclient;
     128   bool            _rawOutput;
    128129};
    129130
  • trunk/BNC/bncwindow.cpp

    r2341 r2386  
    134134  // ---------------
    135135  _logFileLineEdit    = new QLineEdit(settings.value("logFile").toString());
     136  _rawOutFileLineEdit = new QLineEdit(settings.value("rawOutFile").toString());
    136137  _rnxAppendCheckBox  = new QCheckBox();
    137138  _rnxAppendCheckBox->setCheckState(Qt::CheckState(
     
    529530  gLayout->addWidget(new QLabel("Auto start"),                   3, 0);
    530531  gLayout->addWidget(_autoStartCheckBox,                         3, 1);
    531   gLayout->addWidget(new QLabel("General settings for logfile, file handling, configuration on-the-fly, and auto-start."),4, 0, 1, 50, Qt::AlignLeft);
    532   gLayout->addWidget(new QLabel("    "),5,0);
     532  gLayout->addWidget(new QLabel("raw output file (full path)"),  4, 0);
     533  gLayout->addWidget(_rawOutFileLineEdit,                        4, 1, 1,30);
     534  gLayout->addWidget(new QLabel("General settings for logfile, file handling, configuration on-the-fly, and auto-start."),5, 0, 1, 50, Qt::AlignLeft);
     535  gLayout->addWidget(new QLabel("    "),6,0);
    533536  ggroup->setLayout(gLayout);
    534537
     
    10351038  settings.setValue("ephV3",       _ephV3CheckBox->checkState());
    10361039  settings.setValue("logFile",     _logFileLineEdit->text());
     1040  settings.setValue("rawOutFile",  _rawOutFileLineEdit->text());
    10371041  settings.setValue("miscMount",   _miscMountLineEdit->text());
    10381042  settings.setValue("pppMount",    _pppMountLineEdit->text());
  • trunk/BNC/bncwindow.h

    r2341 r2386  
    128128    QLineEdit* _rnxScrpLineEdit;
    129129    QLineEdit* _logFileLineEdit;
     130    QLineEdit* _rawOutFileLineEdit;
    130131    QComboBox* _pppSPPComboBox;
    131132    QComboBox* _rnxIntrComboBox;
Note: See TracChangeset for help on using the changeset viewer.