Changeset 2386 in ntrip
- Timestamp:
- Mar 26, 2010, 11:47:04 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r1909 r2386 119 119 decoded = true; 120 120 if (_mode == unknown) { 121 _mode = corrections;121 ///// _mode = corrections; 122 122 } 123 123 } … … 341 341 } 342 342 if (_mode == unknown && decoded) { 343 _mode = observations;343 //// _mode = observations; 344 344 } 345 345 } -
trunk/BNC/bncapp.cpp
r2385 r2386 711 711 void bncApp::writeRawData(const QByteArray& data) { 712 712 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 84 84 rawInpFileName.lastIndexOf(QDir::separator())+1,4); 85 85 86 _rawOutput = false; 87 86 88 initialize(); 87 89 } … … 104 106 _ntripVersion = ntripVersion; 105 107 108 bncSettings settings; 109 if (!settings.value("rawOutFile").toString().isEmpty()) { 110 _rawOutput = true; 111 } 112 106 113 initialize(); 107 114 } … … 410 417 // Output Data 411 418 // ----------- 412 bncApp* app = (bncApp*) qApp; 413 app->writeRawData(data); 419 if (_rawOutput) { 420 bncApp* app = (bncApp*) qApp; 421 app->writeRawData(data); 422 } 414 423 415 424 if (_serialPort) { -
trunk/BNC/bncgetthread.h
r2385 r2386 126 126 QMutex _mutex; 127 127 bncPPPclient* _PPPclient; 128 bool _rawOutput; 128 129 }; 129 130 -
trunk/BNC/bncwindow.cpp
r2341 r2386 134 134 // --------------- 135 135 _logFileLineEdit = new QLineEdit(settings.value("logFile").toString()); 136 _rawOutFileLineEdit = new QLineEdit(settings.value("rawOutFile").toString()); 136 137 _rnxAppendCheckBox = new QCheckBox(); 137 138 _rnxAppendCheckBox->setCheckState(Qt::CheckState( … … 529 530 gLayout->addWidget(new QLabel("Auto start"), 3, 0); 530 531 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); 533 536 ggroup->setLayout(gLayout); 534 537 … … 1035 1038 settings.setValue("ephV3", _ephV3CheckBox->checkState()); 1036 1039 settings.setValue("logFile", _logFileLineEdit->text()); 1040 settings.setValue("rawOutFile", _rawOutFileLineEdit->text()); 1037 1041 settings.setValue("miscMount", _miscMountLineEdit->text()); 1038 1042 settings.setValue("pppMount", _pppMountLineEdit->text()); -
trunk/BNC/bncwindow.h
r2341 r2386 128 128 QLineEdit* _rnxScrpLineEdit; 129 129 QLineEdit* _logFileLineEdit; 130 QLineEdit* _rawOutFileLineEdit; 130 131 QComboBox* _pppSPPComboBox; 131 132 QComboBox* _rnxIntrComboBox;
Note:
See TracChangeset
for help on using the changeset viewer.