Changeset 8398 in ntrip for branches/BNC_2.12
- Timestamp:
- Jun 28, 2018, 12:53:59 PM (6 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/GPSDecoder.cpp
r8373 r8398 82 82 if (_rnx) { 83 83 int sec = int(nint(obs._time.gpssec()*10)); 84 if ( _rnx->samplingRate() == 0 || sec % (_rnx->samplingRate()*10) == 0) {84 if (sec % _rnx->samplingRate() == 0) { 85 85 _rnx->deepCopy(obs); 86 86 } -
branches/BNC_2.12/src/bnccaster.cpp
r8373 r8398 96 96 } 97 97 98 _samplingRate = settings.value("outSampl").toInt();98 _samplingRateMult10 = int(settings.value("outSampl").toString().split("sec").first().toDouble() * 10.0); 99 99 _outWait = settings.value("outWait").toDouble(); 100 100 if (_outWait <= 0.0) { … … 304 304 const QList<t_satObs>& allObs = itEpo.value(); 305 305 int sec = int(nint(epoTime.gpssec()*10)); 306 if ( (_out || _sockets) && ( _samplingRate == 0 || sec % (_samplingRate*10) == 0) ) {306 if ( (_out || _sockets) && (sec % (_samplingRateMult10) == 0) ) { 307 307 QListIterator<t_satObs> it(allObs); 308 308 bool firstObs = true; … … 374 374 // Reread several options 375 375 // ---------------------- 376 _samplingRate = settings.value("outSampl").toInt();376 _samplingRateMult10 = int(settings.value("outSampl").toString().split("sec").first().toDouble() * 10.0); 377 377 _outWait = settings.value("outWait").toInt(); 378 378 if (_outWait < 1) { -
branches/BNC_2.12/src/bnccaster.h
r7387 r8398 75 75 QList<QByteArray> _staIDs; 76 76 QList<bncGetThread*> _threads; 77 int _samplingRate ;77 int _samplingRateMult10; 78 78 double _outWait; 79 79 QMutex _mutex; -
branches/BNC_2.12/src/bncmain.cpp
r8351 r8398 103 103 " rnxPath {Directory [character string]}\n" 104 104 " rnxIntr {File interval [character string: 1 min|2 min|5 min|10 min|15 min|30 min|1 hour|1 day]}\n" 105 " rnxSampl {File sampling rate [ integer number of seconds: 0,5|10|15|20|25|30|35|40|45|50|55|60]}\n"105 " rnxSampl {File sampling rate [character string: 0.1 sec|1 sec|5 sec|10 sec|15 sec|30 sec|60 sec]}\n" 106 106 " rnxSkel {RINEX skeleton file extension [character string]}\n" 107 107 " rnxOnlyWithSKL {Using RINEX skeleton file is mandatory [integer number: 0=no,2=yes]}\n" … … 127 127 " reqcPlotDir {QC plots directory [character string]}\n" 128 128 " reqcRnxVersion {RINEX version [integer number: 2|3]}\n" 129 " reqcSampling {RINEX output file sampling rate [ integer number of seconds: 0|5|10|15|20|25|30|35|40|45|50|55|60]}\n"129 " reqcSampling {RINEX output file sampling rate [character string: 0.1 sec|1 sec|5 sec|10 sec|15 sec|30 sec|60 sec]}\n" 130 130 " reqcV2Priority {Version 2 priority of signal attributes [character string, list separated by blank character, example: G:12&PWCSLXYN G:5&IQX C:IQX]}\n" 131 131 " reqcStartDateTime {Start time [character string, example: 1967-11-02T00:00:00]}\n" … … 164 164 " outPort {Output port, synchronized [integer number]}\n" 165 165 " outWait {Wait for full observation epoch [integer number of seconds: 1-30]}\n" 166 " outSampl {Sampling rate [ integer number of seconds: 0|5|10|15|20|25|30|35|40|45|50|55|60]}\n"166 " outSampl {Sampling rate [character string: 0.1 sec|1 sec|5 sec|10 sec|15 sec|30 sec|60 sec]}\n" 167 167 " outFile {Output file, full path [character string]}\n" 168 168 " outUPort {Output port, unsynchronized [integer number]}\n" … … 305 305 "(5) bnc --conf /dev/null --key startTab 4 --key reqcAction Edit/Concatenate" 306 306 " --key reqcObsFile AGAR.15O --key reqcOutObsFile AGAR_X.15O" 307 " --key reqcRnxVersion 2 --key reqcSampling 30 --key reqcV2Priority CWPX_?\n"307 " --key reqcRnxVersion 2 --key reqcSampling 30 sec --key reqcV2Priority CWPX_?\n" 308 308 "(6) bnc --key mountPoints \"//user:pass@mgex.igs-ip.net:2101/CUT07 RTCM_3.0 ETH 9.03 38.74 no 2;" 309 309 "//user:pass@www.igs-ip.net:2101/FFMJ1 RTCM_3.1 DEU 50.09 8.66 no 2\"\n" -
branches/BNC_2.12/src/bncrinex.cpp
r8351 r8398 90 90 _userName = _userName.leftJustified(20, ' ', true); 91 91 92 _samplingRate = settings.value("rnxSampl").toInt(); 92 _samplingRateMult10 = int(settings.value("rnxSampl").toString().split("sec").first().toDouble() * 10.0); 93 94 if (settings.value("rnxSampl").toString() == "0.1 sec") { 95 _samplingRateStr = "_10Z"; 96 } 97 else if (settings.value("rnxSampl").toString() == "1 sec") { 98 _samplingRateStr = "_01S"; 99 } 100 else if (settings.value("rnxSampl").toString() == "5 sec") { 101 _samplingRateStr = "_05S"; 102 } 103 else if (settings.value("rnxSampl").toString() == "10 sec") { 104 _samplingRateStr = "_10S"; 105 } 106 else if (settings.value("rnxSampl").toString() == "15 sec") { 107 _samplingRateStr = "_15S"; 108 } 109 else if (settings.value("rnxSampl").toString() == "30 sec") { 110 _samplingRateStr = "_30S"; 111 } 112 else if (settings.value("rnxSampl").toString() == "60 sec") { 113 _samplingRateStr = "_01M"; 114 } 93 115 94 116 _writeRinexFileOnlyWithSkl = settings.value("rnxOnlyWithSKL").toBool(); … … 348 370 } 349 371 } 350 int sampl = settings.value("rnxSampl").toString().mid(0,2).toInt(); 351 if (!sampl) 352 sampl++; 372 353 373 path += ID4 + 354 374 QString("%1").arg(monNum, 1, 10) + … … 359 379 QString("%1").arg(datTim.date().dayOfYear(), 3, 10, QChar('0')) + 360 380 hlpStr + // HMS_period 361 QString(" _%1S").arg(sampl, 2, 10, QChar('0')) + // sampling rate381 QString("%1").arg(_samplingRateStr) + // sampling rate 362 382 "_MO" + // mixed OBS 363 383 distStr + -
branches/BNC_2.12/src/bncrinex.h
r8351 r8398 40 40 ~bncRinex(); 41 41 42 int samplingRate() const {return _samplingRate ;}42 int samplingRate() const {return _samplingRateMult10;} 43 43 void deepCopy(t_satObs obs); 44 44 void dumpEpoch(const QByteArray& format, const bncTime& maxTime); … … 77 77 bool _reconnectFlag; 78 78 QDate _skeletonDate; 79 int _samplingRate; 79 QString _samplingRateStr; 80 int _samplingRateMult10; 80 81 QStringList _addComments; 81 82 -
branches/BNC_2.12/src/bncsettings.cpp
r8351 r8398 87 87 setValue_p("rnxIntr", "1 day"); 88 88 setValue_p("rnxOnlyWithSKL", ""); 89 setValue_p("rnxSampl", " 0");89 setValue_p("rnxSampl", "1 sec"); 90 90 setValue_p("rnxSkel", "SKL"); 91 91 setValue_p("rnxV2Priority", ""); … … 107 107 setValue_p("reqcPlotDir", ""); 108 108 setValue_p("reqcRnxVersion", ""); 109 setValue_p("reqcSampling", " ");109 setValue_p("reqcSampling", "1 sec"); 110 110 setValue_p("reqcStartDateTime", "1967-11-02T00:00:00"); 111 111 setValue_p("reqcEndDateTime", "2099-01-01T00:00:00"); … … 143 143 setValue_p("outPort", ""); 144 144 setValue_p("outWait", "5"); 145 setValue_p("outSampl", " 0");145 setValue_p("outSampl", "1 sec"); 146 146 setValue_p("outFile", ""); 147 147 setValue_p("outUPort", ""); -
branches/BNC_2.12/src/bncwindow.cpp
r8371 r8398 206 206 _rnxIntrComboBox->setCurrentIndex(ii); 207 207 } 208 _rnxSamplSpinBox = new QSpinBox(); 209 _rnxSamplSpinBox->setMinimum(0); 210 _rnxSamplSpinBox->setMaximum(60); 211 _rnxSamplSpinBox->setSingleStep(5); 212 _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt()); 208 _rnxSamplComboBox = new QComboBox(); 209 _rnxSamplComboBox->setEditable(false); 210 _rnxSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 211 int ij = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 212 if (ij != -1) { 213 _rnxSamplComboBox->setCurrentIndex(ij); 214 } 213 215 _rnxFileCheckBox = new QCheckBox(); 214 216 _rnxFileCheckBox->setCheckState(Qt::CheckState(settings.value("rnxOnlyWithSKL").toInt())); 215 _rnxSamplSpinBox->setSuffix(" sec");216 217 _rnxSkelLineEdit = new QLineEdit(settings.value("rnxSkel").toString()); 217 218 _rnxSkelLineEdit->setMaximumWidth(5*ww); … … 277 278 _outWaitSpinBox->setSuffix(" sec"); 278 279 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 279 _outSampl SpinBox = new QSpinBox();280 _outSampl SpinBox->setMinimum(0);281 _outSamplSpinBox->setMaximum(60);282 _outSamplSpinBox->setSingleStep(5);283 _outSamplSpinBox->setValue(settings.value("outSampl").toInt());284 _outSamplSpinBox->setSuffix(" sec");280 _outSamplComboBox = new QComboBox(); 281 _outSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 282 int nn = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 283 if (nn != -1) { 284 _rnxSamplComboBox->setCurrentIndex(nn); 285 } 285 286 _outFileLineEdit = new QLineEdit(settings.value("outFile").toString()); 286 287 _outUPortLineEdit = new QLineEdit(settings.value("outUPort").toString()); … … 674 675 oLayout->setColumnMinimumWidth(0,14*ww); 675 676 _rnxIntrComboBox->setMaximumWidth(9*ww); 676 _rnxSampl SpinBox->setMaximumWidth(9*ww);677 _rnxSamplComboBox->setMaximumWidth(9*ww); 677 678 678 679 oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50); … … 682 683 oLayout->addWidget(_rnxIntrComboBox, 2, 1); 683 684 oLayout->addWidget(new QLabel(" Sampling"), 2, 2, Qt::AlignRight); 684 oLayout->addWidget(_rnxSampl SpinBox, 2, 3, Qt::AlignLeft);685 oLayout->addWidget(_rnxSamplComboBox, 2, 3, Qt::AlignLeft); 685 686 oLayout->addWidget(new QLabel("Skeleton extension"), 3, 0); 686 687 oLayout->addWidget(_rnxSkelLineEdit, 3, 1, Qt::AlignLeft); … … 743 744 _outPortLineEdit->setMaximumWidth(9*ww); 744 745 _outWaitSpinBox->setMaximumWidth(9*ww); 745 _outSampl SpinBox->setMaximumWidth(9*ww);746 _outSamplComboBox->setMaximumWidth(9*ww); 746 747 _outUPortLineEdit->setMaximumWidth(9*ww); 747 748 … … 752 753 sLayout->addWidget(_outWaitSpinBox, 1, 3, Qt::AlignLeft); 753 754 sLayout->addWidget(new QLabel("Sampling"), 2, 0); 754 sLayout->addWidget(_outSampl SpinBox, 2, 1, Qt::AlignLeft);755 sLayout->addWidget(_outSamplComboBox, 2, 1, Qt::AlignLeft); 755 756 sLayout->addWidget(new QLabel("File (full path)"), 3, 0); 756 757 sLayout->addWidget(_outFileLineEdit, 3, 1, 1, 10); … … 1236 1237 _rnxPathLineEdit->setWhatsThis(tr("<p>Here you specify the path to where the RINEX Observation files will be stored.</p><p>If the specified directory does not exist, BNC will not create RINEX Observation files.</p>")); 1237 1238 _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file.</p>")); 1238 _rnxSampl SpinBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds.</p><p>A value of zero '0' tells BNC to store all received epochs into RINEX Observation files.</p>"));1239 _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. </p>")); 1239 1240 _rnxSkelLineEdit->setWhatsThis(tr("<p>BNC allows using personal RINEX skeleton files that contain the RINEX header records you would like to include. You can derive a skeleton file from information given in an up to date sitelog.</p><p>A file in the RINEX Observations 'Directory' with a 'Skeleton extension' skl or SKL is interpreted by BNC as a personal RINEX header skeleton file for the corresponding stream. In case of 'SKL'/'skl' the 4-char ID forming the base name has to be written in upper/lower cases. </p>")); 1240 1241 _rnxFileCheckBox->setWhatsThis(tr("<p>Tick check box 'Skeleton mandatory' in case you want that RINEX files are only produced if skeleton files are available for BNC. If no skeleton file is available for a particular source then no RINEX Observation file will be produced from the affected stream.</p><p>Note that a skeleton file contains RINEX header information such as receiver and antenna types. In case of stream conversion to RINEX Version 3, a skeleton file should also contain information on potentially available observation types. A missing skeleton file will therefore enforce BNC to only save a default set of RINEX 3 observation types.</p>")); … … 1279 1280 _outPortLineEdit->setWhatsThis(tr("<p>BNC can produce synchronized observations in a plain ASCII format on your local host via IP port.</p><p>Specify a port number to activate this function.</p>")); 1280 1281 _outWaitSpinBox->setWhatsThis(tr("<p>When feeding a real-time GNSS network engine waiting for synchronized input epoch by epoch, BNC drops whatever is received later than 'Wait for full obs epoch' seconds.</p><p>A value of 3 to 5 seconds is recommended, depending on the latency of the incoming streams and the delay acceptable to your real-time GNSS network engine or product.</p>")); 1281 _outSampl SpinBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds.</p><p>A value of zero '0' tells BNC to send/store all received epochs.</p>"));1282 _outSamplComboBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds. </p>")); 1282 1283 _outFileLineEdit->setWhatsThis(tr("<p>Specify the full path to a file where synchronized observations are saved in plain ASCII format.</p><p>Beware that the size of this file can rapidly increase depending on the number of incoming streams.</p>")); 1283 1284 _outUPortLineEdit->setWhatsThis(tr("<p>BNC can produce unsynchronized observations in a plain ASCII format on your local host via IP port.</p><p>Specify a port number to activate this function.</p>")); … … 1439 1440 delete _rnxPathLineEdit; 1440 1441 delete _rnxIntrComboBox; 1441 delete _rnxSampl SpinBox;1442 delete _rnxSamplComboBox; 1442 1443 delete _rnxFileCheckBox; 1443 1444 delete _rnxSkelLineEdit; … … 1454 1455 delete _outPortLineEdit; 1455 1456 delete _outWaitSpinBox; 1456 delete _outSampl SpinBox;1457 delete _outSamplComboBox; 1457 1458 delete _outFileLineEdit; 1458 1459 delete _outUPortLineEdit; … … 1853 1854 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 1854 1855 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); 1855 settings.setValue("rnxSampl", _rnxSamplSpinBox->value());1856 settings.setValue("rnxSampl", _rnxSamplComboBox->currentText()); 1856 1857 settings.setValue("rnxSkel", _rnxSkelLineEdit->text()); 1857 1858 settings.setValue("rnxOnlyWithSKL",_rnxFileCheckBox->checkState()); … … 1863 1864 settings.setValue("ephIntr", _ephIntrComboBox->currentText()); 1864 1865 settings.setValue("ephOutPort", _ephOutPortLineEdit->text()); 1865 settings.setValue("rnxV3", _rnxV3CheckBox->checkState());1866 settings.setValue("ephV3", _ephV3CheckBox->checkState()) 1866 1867 // Broadcast Corrections 1867 1868 settings.setValue("corrPath", _corrPathLineEdit->text()); … … 1871 1872 settings.setValue("outPort", _outPortLineEdit->text()); 1872 1873 settings.setValue("outWait", _outWaitSpinBox->value()); 1873 settings.setValue("outSampl", _outSampl SpinBox->value());1874 settings.setValue("outSampl", _outSamplComboBox->currentText()); 1874 1875 settings.setValue("outFile", _outFileLineEdit->text()); 1875 1876 settings.setValue("outUPort", _outUPortLineEdit->text()); … … 2184 2185 populateMountPointsTable(); 2185 2186 bncSettings settings; 2186 _outSampl SpinBox->setValue(settings.value("outSampl").toInt());2187 _outSamplComboBox->findText(settings.value("rnxSampl").toString()); 2187 2188 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 2188 2189 QListIterator<bncGetThread*> iTh(threads); … … 2341 2342 enable = !_rnxPathLineEdit->text().isEmpty(); 2342 2343 enableWidget(enable, _rnxIntrComboBox); 2343 enableWidget(enable, _rnxSampl SpinBox);2344 enableWidget(enable, _rnxSamplComboBox); 2344 2345 enableWidget(enable, _rnxSkelLineEdit); 2345 2346 enableWidget(enable, _rnxFileCheckBox); … … 2388 2389 enable = !_outPortLineEdit->text().isEmpty() || !_outFileLineEdit->text().isEmpty(); 2389 2390 enableWidget(enable, _outWaitSpinBox); 2390 enableWidget(enable, _outSampl SpinBox);2391 enableWidget(enable, _outSamplComboBox); 2391 2392 } 2392 2393 -
branches/BNC_2.12/src/bncwindow.h
r8351 r8398 166 166 QComboBox* _ephIntrComboBox; 167 167 QComboBox* _corrIntrComboBox; 168 Q SpinBox* _rnxSamplSpinBox;169 Q SpinBox* _outSamplSpinBox;168 QComboBox* _rnxSamplComboBox; 169 QComboBox* _outSamplComboBox; 170 170 QCheckBox* _rnxAppendCheckBox; 171 171 QCheckBox* _autoStartCheckBox; -
branches/BNC_2.12/src/reqcdlg.cpp
r8130 r8398 58 58 59 59 _reqcRnxVersion = new QComboBox(this); 60 _reqcSampling = new Q SpinBox(this);60 _reqcSampling = new QComboBox(this); 61 61 _reqcStartDateTime = new QDateTimeEdit(this); 62 62 _reqcStartDateTime->setDisplayFormat(timeFmtString); … … 83 83 _reqcNewReceiverNumber = new QLineEdit(this); 84 84 85 86 85 _reqcRnxVersion->setEditable(false); 87 86 _reqcRnxVersion->addItems(QString("2,3").split(",")); 88 87 _reqcRnxVersion->setMaximumWidth(7*ww); 89 88 90 _reqcSampling->setMinimum(0); 91 _reqcSampling->setMaximum(60); 92 _reqcSampling->setSingleStep(5); 93 _reqcSampling->setSuffix(" sec"); 94 _reqcSampling->setMaximumWidth(7*ww); 89 _reqcSampling->setEditable(false); 90 _reqcSampling->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 91 bncSettings settings; 92 int ll = _reqcSampling->findText(settings.value("reqcSampl").toString()); 93 if (ll != -1) { 94 _reqcSampling->setCurrentIndex(ll); 95 } 95 96 96 97 // Read Options 97 98 // ------------ 98 bncSettings settings;99 100 99 int kk = _reqcRnxVersion->findText(settings.value("reqcRnxVersion").toString()); 101 100 if (kk != -1) { 102 101 _reqcRnxVersion->setCurrentIndex(kk); 103 102 } 104 _reqcSampling-> setValue(settings.value("reqcSampling").toInt());103 _reqcSampling->findText(settings.value("reqcSampling").toString()); 105 104 if (settings.value("reqcStartDateTime").toString().isEmpty()) { 106 105 _reqcStartDateTime->setDateTime(QDateTime::fromString("1967-11-02T00:00:00", Qt::ISODate)); … … 231 230 // ----------------------------- 232 231 _reqcRnxVersion->setWhatsThis(tr("<p>Select version number of emerging new RINEX file.</p><p>Note the following:</p><p>When converting <u>RINEX Version 2 to Version 3 </u>Observation files, the tracking mode or channel information (signal attribute, see RINEX Version 3 documentation) in the (last out of the three characters) observation code is left blank if unknown.</p><p>When converting <u>RINEX Version 3 to Version 2</u>, the mapping of observations follows a 'Signal priority list' with signal attributes as defined in RINEX Version 3.</p>")); 233 _reqcSampling->setWhatsThis(tr("<p>Select sampling rate of emerging new RINEX Observation file.</p> <p>'0 sec' means that observations from all epochs in the RINEX input file will become part of the RINEX output file.</p>"));232 _reqcSampling->setWhatsThis(tr("<p>Select sampling rate of emerging new RINEX Observation file.</p>")); 234 233 _reqcV2Priority->setWhatsThis(tr("<p>Specify a priority list of characters defining signal attributes as defined in RINEX Version 3. Priorities will be used to map observations with RINEX Version 3 attributes from incoming streams to Version 2. The underscore character '_' stands for undefined attributes. A question mark '?' can be used as wildcard which represents any one character.</p><p>Signal priorities can be specified as equal for all systems, as system specific or as system and freq. specific. For example: </li><ul><li>'CWPX_?' (General signal priorities valid for all GNSS) </li><li>'C:IQX I:ABCX' (System specific signal priorities for BDS and IRNSS) </li><li>'G:12&PWCSLXYN G:5&IQX R:12&PC R:3&IQX' (System and frequency specific signal priorities) </li></ul>Default is the following priority list 'G:12&PWCSLXYN_ G:5&IQX_ R:12&PC_ R:3&IQX_ E:16&BCX_ E:578&IQX_ J:1&SLXCZ_ J:26&SLX_ J:5&IQX_ C:IQX_ I:ABCX_ S:1&C_ S:5&IQX_'.</p>")); 235 234 _reqcStartDateTime->setWhatsThis(tr("<p>Specify begin of emerging new RINEX Observation file.</p>")); … … 303 302 304 303 settings.setValue("reqcRnxVersion" , _reqcRnxVersion->currentText()); 305 settings.setValue("reqcSampling" , _reqcSampling-> value());304 settings.setValue("reqcSampling" , _reqcSampling->currentText()); 306 305 settings.setValue("reqcV2Priority" , _reqcV2Priority->text()); 307 306 settings.setValue("reqcStartDateTime" , _reqcStartDateTime->dateTime().toString(Qt::ISODate)); -
branches/BNC_2.12/src/reqcdlg.h
r6795 r8398 55 55 56 56 QComboBox* _reqcRnxVersion; 57 Q SpinBox*_reqcSampling;57 QComboBox* _reqcSampling; 58 58 QDateTimeEdit* _reqcStartDateTime; 59 59 QDateTimeEdit* _reqcEndDateTime; -
branches/BNC_2.12/src/rinex/reqcanalyze.cpp
r8370 r8398 819 819 << "End Time : " << _qcFile._endTime.datestr().c_str() << ' ' 820 820 << _qcFile._endTime.timestr(1,'.').c_str() << endl 821 << "Interval : " << _qcFile._interval 821 << "Interval : " << _qcFile._interval << " sec" << endl; 822 822 823 823 // Number of systems -
branches/BNC_2.12/src/rinex/reqcedit.cpp
r8373 r8398 69 69 _rnxVersion = defaultRnxObsVersion3; 70 70 } 71 _samplingRate = settings.value("reqcSampling").to Int();71 _samplingRate = settings.value("reqcSampling").toString().split("sec").first().toDouble(); 72 72 _begTime = bncTime(settings.value("reqcStartDateTime").toString().toAscii().data()); 73 73 _endTime = bncTime(settings.value("reqcEndDateTime").toString().toAscii().data()); … … 118 118 << _rnxVersion << endl; 119 119 *_log << QByteArray("Sampling").leftJustified(15) << ": " 120 << _samplingRate << endl;120 << _samplingRate << " sec" << endl; 121 121 *_log << QByteArray("Start time").leftJustified(15) << ": " 122 122 << _begTime.datestr().c_str() << ' ' … … 337 337 338 338 int sec = int(nint(epo->tt.gpssec()*10)); 339 if ( _samplingRate == 0 || sec % (_samplingRate*10) == 0) {339 if (sec % (int(_samplingRate)*10) == 0) { 340 340 applyLLI(obsFile, epo); 341 341 outObsFile.writeEpoch(epo); -
branches/BNC_2.12/src/rinex/reqcedit.h
r7474 r8398 71 71 QString _outNavFileName; 72 72 double _rnxVersion; 73 int_samplingRate;73 double _samplingRate; 74 74 bncTime _begTime; 75 75 bncTime _endTime;
Note:
See TracChangeset
for help on using the changeset viewer.