Changeset 4174 in ntrip
- Timestamp:
- May 15, 2012, 10:27:42 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncsettings.cpp
r4173 r4174 170 170 setValue_p("uploadMountpointsOut",""); 171 171 setValue_p("uploadIntr", "1 day"); 172 setValue_p("uploadSamplRtcmClkCorr", "5");173 172 setValue_p("uploadSamplRtcmEphCorr", "0"); 174 173 setValue_p("uploadSamplSp3", "1"); 175 setValue_p("uploadSamplClkRnx", "5");174 setValue_p("uploadSamplClkRnx", "10"); 176 175 setValue_p("trafo_dx", ""); 177 176 setValue_p("trafo_dy", ""); -
trunk/BNC/bncwindow.cpp
r4173 r4174 559 559 _uploadIntrComboBox->setCurrentIndex(ii); 560 560 } 561 _uploadSamplRtcmClkCorrSpinBox = new QSpinBox;562 _uploadSamplRtcmClkCorrSpinBox->setMinimum(5);563 _uploadSamplRtcmClkCorrSpinBox->setMaximum(60);564 _uploadSamplRtcmClkCorrSpinBox->setSingleStep(5);565 _uploadSamplRtcmClkCorrSpinBox->setMaximumWidth(9*ww);566 _uploadSamplRtcmClkCorrSpinBox->setValue(settings.value("uploadSamplRtcmClkCorr").toInt());567 _uploadSamplRtcmClkCorrSpinBox->setSuffix(" sec");568 561 569 562 _uploadSamplRtcmEphCorrSpinBox = new QSpinBox; … … 594 587 if (iRowT > 0) { 595 588 enableWidget(true, _uploadIntrComboBox); 596 enableWidget(true, _uploadSamplRtcmClkCorrSpinBox);597 589 enableWidget(true, _uploadSamplRtcmEphCorrSpinBox); 598 590 enableWidget(true, _uploadSamplSp3SpinBox); … … 601 593 else { 602 594 enableWidget(false, _uploadIntrComboBox); 603 enableWidget(false, _uploadSamplRtcmClkCorrSpinBox);604 595 enableWidget(false, _uploadSamplRtcmEphCorrSpinBox); 605 596 enableWidget(false, _uploadSamplSp3SpinBox); … … 1130 1121 uploadHlpLayout->addWidget(new QLabel("Interval"), 0, 2, Qt::AlignRight); 1131 1122 uploadHlpLayout->addWidget(_uploadIntrComboBox, 0, 3); 1132 uploadHlpLayout->addWidget(new QLabel(" Sampling: Clk"), 0, 4, Qt::AlignRight); 1133 uploadHlpLayout->addWidget(_uploadSamplRtcmClkCorrSpinBox, 0, 5); 1134 uploadHlpLayout->addWidget(new QLabel("Orb"), 0, 6, Qt::AlignRight); 1135 uploadHlpLayout->addWidget(_uploadSamplRtcmEphCorrSpinBox, 0, 7); 1136 uploadHlpLayout->addWidget(new QLabel("SP3"), 0, 8, Qt::AlignRight); 1137 uploadHlpLayout->addWidget(_uploadSamplSp3SpinBox, 0, 9); 1138 uploadHlpLayout->addWidget(new QLabel("RNX"), 0,10, Qt::AlignRight); 1139 uploadHlpLayout->addWidget(_uploadSamplClkRnxSpinBox, 0,11); 1140 uploadHlpLayout->addWidget(setUploadTrafoButton, 0,12); 1123 uploadHlpLayout->addWidget(new QLabel("Sampling: Orb"), 0, 4, Qt::AlignRight); 1124 uploadHlpLayout->addWidget(_uploadSamplRtcmEphCorrSpinBox, 0, 5); 1125 uploadHlpLayout->addWidget(new QLabel("SP3"), 0, 6, Qt::AlignRight); 1126 uploadHlpLayout->addWidget(_uploadSamplSp3SpinBox, 0, 7); 1127 uploadHlpLayout->addWidget(new QLabel("RNX"), 0, 8, Qt::AlignRight); 1128 uploadHlpLayout->addWidget(_uploadSamplClkRnxSpinBox, 0, 9); 1129 uploadHlpLayout->addWidget(setUploadTrafoButton, 0,10); 1141 1130 1142 1131 QBoxLayout* uploadLayout = new QBoxLayout(QBoxLayout::TopToBottom); … … 1292 1281 delUploadRowButton->setWhatsThis(tr("Hit 'Del Row' button to delete the highlighted line from the stream upload table.")); 1293 1282 _uploadIntrComboBox->setWhatsThis(tr("Select the length of the SP3 and Clock RINEX files.")); 1294 _uploadSamplRtcmClkCorrSpinBox->setWhatsThis(tr("Select the Clock Correction sampling interval in seconds. A value of zero '0' tells BNC to upload all available samples."));1295 1283 _uploadSamplRtcmEphCorrSpinBox->setWhatsThis(tr("Select the Ephemeris Correction sampling interval in seconds. A value of zero '0' tells BNC to upload all available samples.")); 1296 1284 _uploadSamplClkRnxSpinBox->setWhatsThis(tr("Select the Clock RINEX file sampling interval in seconds. A value of zero '0' tells BNC to store all available samples into Clock RINEX files.")); … … 1753 1741 } 1754 1742 settings.setValue("uploadIntr", _uploadIntrComboBox->currentText()); 1755 settings.setValue("uploadSamplRtcmClkCorr", _uploadSamplRtcmClkCorrSpinBox->value());1756 1743 settings.setValue("uploadSamplRtcmEphCorr", _uploadSamplRtcmEphCorrSpinBox->value()); 1757 1744 settings.setValue("uploadSamplSp3", _uploadSamplSp3SpinBox->value()); … … 2237 2224 if (iRow > 0) { 2238 2225 enableWidget(true, _uploadIntrComboBox); 2239 enableWidget(true, _uploadSamplRtcmClkCorrSpinBox);2240 2226 enableWidget(true, _uploadSamplRtcmEphCorrSpinBox); 2241 2227 enableWidget(true, _uploadSamplClkRnxSpinBox); … … 2244 2230 else { 2245 2231 enableWidget(false, _uploadIntrComboBox); 2246 enableWidget(false, _uploadSamplRtcmClkCorrSpinBox);2247 2232 enableWidget(false, _uploadSamplRtcmEphCorrSpinBox); 2248 2233 enableWidget(false, _uploadSamplClkRnxSpinBox); … … 2465 2450 if (nRows < 1) { 2466 2451 enableWidget(false, _uploadIntrComboBox); 2467 enableWidget(false, _uploadSamplRtcmClkCorrSpinBox);2468 2452 enableWidget(false, _uploadSamplRtcmEphCorrSpinBox); 2469 2453 enableWidget(false, _uploadSamplSp3SpinBox); -
trunk/BNC/bncwindow.h
r4172 r4174 233 233 QTableWidget* _uploadTable; 234 234 QComboBox* _uploadIntrComboBox; 235 QSpinBox* _uploadSamplRtcmClkCorrSpinBox;236 235 QSpinBox* _uploadSamplRtcmEphCorrSpinBox; 237 236 QSpinBox* _uploadSamplSp3SpinBox; -
trunk/BNC/upload/bncrtnetuploadcaster.cpp
r4153 r4174 48 48 bncSettings settings; 49 49 QString intr = settings.value("uploadIntr").toString(); 50 int sampl = settings.value("uploadSampl").toInt(); 51 _samplOrb = settings.value("uploadSamplOrb").toDouble(); 52 if (_samplOrb == 0.0) { 50 51 _samplRtcmEphCorr = settings.value("uploadSamplRtcmEphCorr").toDouble(); 52 double samplClkRnx = settings.value("uploadSamplClkRnx").toDouble(); 53 double samplSp3 = settings.value("uploadSamplSp3").toDouble() * 60.0; 54 55 if (_samplRtcmEphCorr == 0.0) { 53 56 _usedEph = 0; 54 57 } … … 60 63 // ---------- 61 64 if (!outFileName.isEmpty()) { 62 _outFile = new bncoutf(outFileName, intr, sampl);65 _outFile = new bncoutf(outFileName, intr, 0); 63 66 } 64 67 else { … … 69 72 // ------------ 70 73 if (!rnxFileName.isEmpty()) { 71 _rnx = new bncClockRinex(rnxFileName, intr, sampl );74 _rnx = new bncClockRinex(rnxFileName, intr, samplClkRnx); 72 75 } 73 76 else { … … 78 81 // ---------- 79 82 if (!sp3FileName.isEmpty()) { 80 _sp3 = new bncSP3(sp3FileName, intr, _samplOrb);83 _sp3 = new bncSP3(sp3FileName, intr, samplSp3); 81 84 } 82 85 else { … … 298 301 // ---------------------------------------------------------------- 299 302 if (_usedEph) { 300 if (fmod(epoTime.gpssec(), _sampl Orb) == 0.0) {303 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 301 304 (*_usedEph)[prn] = eph; 302 305 } … … 396 399 // Orbit and Clock Corrections together 397 400 // ------------------------------------ 398 if (_sampl Orb== 0.0) {401 if (_samplRtcmEphCorr == 0.0) { 399 402 if (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) { 400 403 char obuffer[CLOCKORBIT_BUFFERSIZE]; … … 411 414 if (co.NumberOfGPSSat > 0) { 412 415 char obuffer[CLOCKORBIT_BUFFERSIZE]; 413 if (fmod(epoTime.gpssec(), _sampl Orb) == 0.0) {416 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 414 417 int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 1, obuffer, sizeof(obuffer)); 415 418 if (len1 > 0) { … … 425 428 if (co.NumberOfGLONASSSat > 0) { 426 429 char obuffer[CLOCKORBIT_BUFFERSIZE]; 427 if (fmod(epoTime.gpssec(), _sampl Orb) == 0.0) {430 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 428 431 int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 1, obuffer, sizeof(obuffer)); 429 432 if (len1 > 0) { -
trunk/BNC/upload/bncrtnetuploadcaster.h
r4111 r4174 44 44 int _SID; 45 45 int _IOD; 46 double _sampl Orb;46 double _samplRtcmEphCorr; 47 47 double _dx; 48 48 double _dy;
Note:
See TracChangeset
for help on using the changeset viewer.