- Timestamp:
- Jun 28, 2018, 12:47:06 PM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/GPSDecoder.cpp
r8372 r8397 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 } -
trunk/BNC/src/bnccaster.cpp
r8372 r8397 96 96 } 97 97 98 _samplingRate = settings.value("outSampl").toInt();99 _outWait = settings.value("outWait").toDouble();98 _samplingRateMult10 = int(settings.value("outSampl").toString().split("sec").first().toDouble() * 10.0); 99 _outWait = settings.value("outWait").toDouble(); 100 100 if (_outWait <= 0.0) { 101 101 _outWait = 0.01; … … 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) { -
trunk/BNC/src/bnccaster.h
r8252 r8397 52 52 signals: 53 53 void mountPointsRead(QList<bncGetThread*>); 54 void getThreadsFinished(); 54 void getThreadsFinished(); 55 55 void newMessage(QByteArray msg, bool showOnScreen); 56 56 void newObs(QByteArray staID, QList<t_satObs> obsList); … … 77 77 QList<QByteArray> _staIDs; 78 78 QList<bncGetThread*> _threads; 79 int _samplingRate ;79 int _samplingRateMult10; 80 80 double _outWait; 81 81 QMutex _mutex; -
trunk/BNC/src/bncmain.cpp
r8354 r8397 102 102 " rnxPath {Directory [character string]}\n" 103 103 " rnxIntr {File interval [character string: 1 min|2 min|5 min|10 min|15 min|30 min|1 hour|1 day]}\n" 104 " rnxSampl {File sampling rate [ integer number of seconds: 0,5|10|15|20|25|30|35|40|45|50|55|60]}\n"104 " rnxSampl {File sampling rate [character string: 0.1 sec|1 sec|5 sec|10 sec|15 sec|30 sec|60 sec]}\n" 105 105 " rnxSkel {RINEX skeleton file extension [character string]}\n" 106 106 " rnxOnlyWithSKL {Using RINEX skeleton file is mandatory [integer number: 0=no,2=yes]}\n" … … 126 126 " reqcPlotDir {QC plots directory [character string]}\n" 127 127 " reqcRnxVersion {RINEX version [integer number: 2|3]}\n" 128 " reqcSampling {RINEX output file sampling rate [ integer number of seconds: 0|5|10|15|20|25|30|35|40|45|50|55|60]}\n"128 " reqcSampling {RINEX output file sampling rate [character string: 0.1 sec|1 sec|5 sec|10 sec|15 sec|30 sec|60 sec]}\n" 129 129 " reqcV2Priority {Version 2 priority of signal attributes [character string, list separated by blank character, example: G:12&PWCSLXYN G:5&IQX C:IQX]}\n" 130 130 " reqcStartDateTime {Start time [character string, example: 1967-11-02T00:00:00]}\n" … … 163 163 " outPort {Output port, synchronized [integer number]}\n" 164 164 " outWait {Wait for full observation epoch [integer number of seconds: 1-30]}\n" 165 " outSampl {Sampling rate [ integer number of seconds: 0|5|10|15|20|25|30|35|40|45|50|55|60]}\n"165 " outSampl {Sampling rate [character string: 0.1 sec|1 sec|5 sec|10 sec|15 sec|30 sec|60 sec]}\n" 166 166 " outFile {Output file, full path [character string]}\n" 167 167 " 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" -
trunk/BNC/src/bncrinex.cpp
r8354 r8397 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 + -
trunk/BNC/src/bncrinex.h
r8354 r8397 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 -
trunk/BNC/src/bncsettings.cpp
r8354 r8397 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"); … … 142 142 setValue_p("outPort", ""); 143 143 setValue_p("outWait", "5"); 144 setValue_p("outSampl", " 0");144 setValue_p("outSampl", "1 sec"); 145 145 setValue_p("outFile", ""); 146 146 setValue_p("outUPort", ""); -
trunk/BNC/src/bncwindow.cpp
r8369 r8397 227 227 _rnxIntrComboBox->setCurrentIndex(ii); 228 228 } 229 _rnxSamplSpinBox = new QSpinBox(); 230 _rnxSamplSpinBox->setMinimum(0); 231 _rnxSamplSpinBox->setMaximum(60); 232 _rnxSamplSpinBox->setSingleStep(5); 233 _rnxSamplSpinBox->setValue(settings.value("rnxSampl").toInt()); 229 _rnxSamplComboBox = new QComboBox(); 230 _rnxSamplComboBox->setEditable(false); 231 _rnxSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 232 int ij = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 233 if (ij != -1) { 234 _rnxSamplComboBox->setCurrentIndex(ij); 235 } 234 236 _rnxFileCheckBox = new QCheckBox(); 235 237 _rnxFileCheckBox->setCheckState(Qt::CheckState(settings.value("rnxOnlyWithSKL").toInt())); 236 _rnxSamplSpinBox->setSuffix(" sec");237 238 _rnxSkelLineEdit = new QLineEdit(settings.value("rnxSkel").toString()); 238 239 _rnxSkelLineEdit->setMaximumWidth(5*ww); … … 298 299 _outWaitSpinBox->setSuffix(" sec"); 299 300 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 300 _outSampl SpinBox = new QSpinBox();301 _outSampl SpinBox->setMinimum(0);302 _outSamplSpinBox->setMaximum(60);303 _outSamplSpinBox->setSingleStep(5);304 _outSamplSpinBox->setValue(settings.value("outSampl").toInt());305 _outSamplSpinBox->setSuffix(" sec");301 _outSamplComboBox = new QComboBox(); 302 _outSamplComboBox->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 303 int nn = _rnxSamplComboBox->findText(settings.value("rnxSampl").toString()); 304 if (nn != -1) { 305 _rnxSamplComboBox->setCurrentIndex(nn); 306 } 306 307 _outFileLineEdit = new QLineEdit(settings.value("outFile").toString()); 307 308 _outUPortLineEdit = new QLineEdit(settings.value("outUPort").toString()); … … 740 741 oLayout->setColumnMinimumWidth(0,14*ww); 741 742 _rnxIntrComboBox->setMaximumWidth(9*ww); 742 _rnxSampl SpinBox->setMaximumWidth(9*ww);743 _rnxSamplComboBox->setMaximumWidth(9*ww); 743 744 744 745 oLayout->addWidget(new QLabel("Saving RINEX observation files.<br>"),0, 0, 1,50); … … 748 749 oLayout->addWidget(_rnxIntrComboBox, 2, 1); 749 750 oLayout->addWidget(new QLabel(" Sampling"), 2, 2, Qt::AlignRight); 750 oLayout->addWidget(_rnxSampl SpinBox,2, 3, Qt::AlignLeft);751 oLayout->addWidget(_rnxSamplComboBox, 2, 3, Qt::AlignLeft); 751 752 oLayout->addWidget(new QLabel("Skeleton extension"), 3, 0); 752 753 oLayout->addWidget(_rnxSkelLineEdit, 3, 1, Qt::AlignLeft); … … 809 810 _outPortLineEdit->setMaximumWidth(9*ww); 810 811 _outWaitSpinBox->setMaximumWidth(9*ww); 811 _outSampl SpinBox->setMaximumWidth(9*ww);812 _outSamplComboBox->setMaximumWidth(9*ww); 812 813 _outUPortLineEdit->setMaximumWidth(9*ww); 813 814 … … 816 817 sLayout->addWidget(_outPortLineEdit, 1, 1); 817 818 sLayout->addWidget(new QLabel(" Wait for full obs epoch"), 1, 2, Qt::AlignRight); 818 sLayout->addWidget(_outWaitSpinBox, 1, 3, Qt::AlignLeft);819 sLayout->addWidget(_outWaitSpinBox, 1, 3, Qt::AlignLeft); 819 820 sLayout->addWidget(new QLabel("Sampling"), 2, 0); 820 sLayout->addWidget(_outSampl SpinBox,2, 1, Qt::AlignLeft);821 sLayout->addWidget(_outSamplComboBox, 2, 1, Qt::AlignLeft); 821 822 sLayout->addWidget(new QLabel("File (full path)"), 3, 0); 822 823 sLayout->addWidget(_outFileLineEdit, 3, 1, 1, 10); … … 1295 1296 _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. <i>[key: rnxPath]</i></p>")); 1296 1297 _rnxIntrComboBox->setWhatsThis(tr("<p>Select the length of the RINEX Observation file. <i>[key: rnxIntr]</i></p>")); 1297 _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. <i>[key: rnxSampl]</i></p>"));1298 _rnxSamplComboBox->setWhatsThis(tr("<p>Select the RINEX Observation sampling interval in seconds. <i>[key: rnxSampl]</i></p>")); 1298 1299 _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. <i>[key: rnxSkel]</i></p>")); 1299 1300 _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. <i>[key: rnxOnlyWithSKL]</i></p>")); … … 1338 1339 _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. <i>[key: outPort]</i></p>")); 1339 1340 _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. <i>[key: outWait]</i></p>")); 1340 _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. <i>[key: outSampl]</i></p>"));1341 _outSamplComboBox->setWhatsThis(tr("<p>Select a synchronized observation sampling interval in seconds. <i>[key: outSampl]</i></p>")); 1341 1342 _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. <i>[key: outFile]</i></p>")); 1342 1343 _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. <i>[key: outUPort]</i></p>")); … … 1496 1497 delete _rnxPathLineEdit; 1497 1498 delete _rnxIntrComboBox; 1498 delete _rnxSampl SpinBox;1499 delete _rnxSamplComboBox; 1499 1500 delete _rnxFileCheckBox; 1500 1501 delete _rnxSkelLineEdit; … … 1511 1512 delete _outPortLineEdit; 1512 1513 delete _outWaitSpinBox; 1513 delete _outSampl SpinBox;1514 delete _outSamplComboBox; 1514 1515 delete _outFileLineEdit; 1515 1516 delete _outUPortLineEdit; … … 1946 1947 settings.setValue("rnxPath", _rnxPathLineEdit->text()); 1947 1948 settings.setValue("rnxIntr", _rnxIntrComboBox->currentText()); 1948 settings.setValue("rnxSampl", _rnxSampl SpinBox->value());1949 settings.setValue("rnxSampl", _rnxSamplComboBox->currentText()); 1949 1950 settings.setValue("rnxSkel", _rnxSkelLineEdit->text()); 1950 1951 settings.setValue("rnxOnlyWithSKL",_rnxFileCheckBox->checkState()); … … 1964 1965 settings.setValue("outPort", _outPortLineEdit->text()); 1965 1966 settings.setValue("outWait", _outWaitSpinBox->value()); 1966 settings.setValue("outSampl", _outSampl SpinBox->value());1967 settings.setValue("outSampl", _outSamplComboBox->currentText()); 1967 1968 settings.setValue("outFile", _outFileLineEdit->text()); 1968 1969 settings.setValue("outUPort", _outUPortLineEdit->text()); … … 2276 2277 populateMountPointsTable(); 2277 2278 bncSettings settings; 2278 _outSampl SpinBox->setValue(settings.value("outSampl").toInt());2279 _outSamplComboBox->findText(settings.value("rnxSampl").toString()); 2279 2280 _outWaitSpinBox->setValue(settings.value("outWait").toInt()); 2280 2281 QListIterator<bncGetThread*> iTh(threads); … … 2433 2434 enable = !_rnxPathLineEdit->text().isEmpty(); 2434 2435 enableWidget(enable, _rnxIntrComboBox); 2435 enableWidget(enable, _rnxSampl SpinBox);2436 enableWidget(enable, _rnxSamplComboBox); 2436 2437 enableWidget(enable, _rnxSkelLineEdit); 2437 2438 enableWidget(enable, _rnxFileCheckBox); … … 2480 2481 enable = !_outPortLineEdit->text().isEmpty() || !_outFileLineEdit->text().isEmpty(); 2481 2482 enableWidget(enable, _outWaitSpinBox); 2482 enableWidget(enable, _outSampl SpinBox);2483 enableWidget(enable, _outSamplComboBox); 2483 2484 } 2484 2485 -
trunk/BNC/src/bncwindow.h
r8354 r8397 172 172 QComboBox* _ephIntrComboBox; 173 173 QComboBox* _corrIntrComboBox; 174 Q SpinBox* _rnxSamplSpinBox;175 Q SpinBox* _outSamplSpinBox;174 QComboBox* _rnxSamplComboBox; 175 QComboBox* _outSamplComboBox; 176 176 QCheckBox* _rnxAppendCheckBox; 177 177 QCheckBox* _autoStartCheckBox; -
trunk/BNC/src/reqcdlg.cpp
r8252 r8397 69 69 70 70 _reqcRnxVersion = new QComboBox(this); 71 _reqcSampling = new Q SpinBox(this);71 _reqcSampling = new QComboBox(this); 72 72 _reqcStartDateTime = new QDateTimeEdit(this); 73 73 _reqcStartDateTime->setDisplayFormat(timeFmtString); … … 94 94 _reqcNewReceiverNumber = new QLineEdit(this); 95 95 96 97 96 _reqcRnxVersion->setEditable(false); 98 97 _reqcRnxVersion->addItems(QString("2,3").split(",")); 99 98 _reqcRnxVersion->setMaximumWidth(7*ww); 100 99 101 _reqcSampling->setMinimum(0); 102 _reqcSampling->setMaximum(60); 103 _reqcSampling->setSingleStep(5); 104 _reqcSampling->setSuffix(" sec"); 105 _reqcSampling->setMaximumWidth(7*ww); 100 _reqcSampling->setEditable(false); 101 _reqcSampling->addItems(QString("0.1 sec,1 sec,5 sec,10 sec,15 sec,30 sec,60 sec").split(",")); 102 bncSettings settings; 103 int ll = _reqcSampling->findText(settings.value("reqcSampl").toString()); 104 if (ll != -1) { 105 _reqcSampling->setCurrentIndex(ll); 106 } 106 107 107 108 // Read Options 108 109 // ------------ 109 bncSettings settings;110 111 110 int kk = _reqcRnxVersion->findText(settings.value("reqcRnxVersion").toString()); 112 111 if (kk != -1) { 113 112 _reqcRnxVersion->setCurrentIndex(kk); 114 113 } 115 _reqcSampling-> setValue(settings.value("reqcSampling").toInt());114 _reqcSampling->findText(settings.value("reqcSampling").toString()); 116 115 if (settings.value("reqcStartDateTime").toString().isEmpty()) { 117 116 _reqcStartDateTime->setDateTime(QDateTime::fromString("1967-11-02T00:00:00", Qt::ISODate)); … … 242 241 // ----------------------------- 243 242 _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. <i>[key: reqcRnxVersion]</i></p>")); 244 _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.<i>[key: reqcSampling]</i></p>"));243 _reqcSampling->setWhatsThis(tr("<p>Select sampling rate of emerging new RINEX Observation file. <i>[key: reqcSampling]</i></p>")); 245 244 _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_'. <i>[key: reqcV2Priority]</i></p>")); 246 245 _reqcStartDateTime->setWhatsThis(tr("<p>Specify begin of emerging new RINEX Observation file. <i>[key: reqcStartDateTime]</i></p>")); … … 314 313 315 314 settings.setValue("reqcRnxVersion" , _reqcRnxVersion->currentText()); 316 settings.setValue("reqcSampling" , _reqcSampling-> value());315 settings.setValue("reqcSampling" , _reqcSampling->currentText()); 317 316 settings.setValue("reqcV2Priority" , _reqcV2Priority->text()); 318 317 settings.setValue("reqcStartDateTime" , _reqcStartDateTime->dateTime().toString(Qt::ISODate)); -
trunk/BNC/src/reqcdlg.h
r8252 r8397 58 58 59 59 QComboBox* _reqcRnxVersion; 60 Q SpinBox*_reqcSampling;60 QComboBox* _reqcSampling; 61 61 QDateTimeEdit* _reqcStartDateTime; 62 62 QDateTimeEdit* _reqcEndDateTime; -
trunk/BNC/src/rinex/reqcanalyze.cpp
r8368 r8397 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 -
trunk/BNC/src/rinex/reqcedit.cpp
r8372 r8397 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().toLatin1().data()); 73 73 _endTime = bncTime(settings.value("reqcEndDateTime").toString().toLatin1().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() << ' ' … … 338 338 339 339 int sec = int(nint(epo->tt.gpssec()*10)); 340 if ( _samplingRate == 0 || sec % (_samplingRate*10) == 0) {340 if (sec % (int(_samplingRate)*10) == 0) { 341 341 applyLLI(obsFile, epo); 342 342 outObsFile.writeEpoch(epo); -
trunk/BNC/src/rinex/reqcedit.h
r7474 r8397 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.