Changeset 4174 in ntrip


Ignore:
Timestamp:
May 15, 2012, 10:27:42 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncsettings.cpp

    r4173 r4174  
    170170      setValue_p("uploadMountpointsOut","");
    171171      setValue_p("uploadIntr",          "1 day");
    172       setValue_p("uploadSamplRtcmClkCorr", "5");
    173172      setValue_p("uploadSamplRtcmEphCorr", "0");
    174173      setValue_p("uploadSamplSp3",         "1");
    175       setValue_p("uploadSamplClkRnx",      "5");
     174      setValue_p("uploadSamplClkRnx",     "10");
    176175      setValue_p("trafo_dx",            "");
    177176      setValue_p("trafo_dy",            "");
  • trunk/BNC/bncwindow.cpp

    r4173 r4174  
    559559    _uploadIntrComboBox->setCurrentIndex(ii);
    560560  }
    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");
    568561
    569562  _uploadSamplRtcmEphCorrSpinBox = new QSpinBox;
     
    594587  if (iRowT > 0) {
    595588    enableWidget(true, _uploadIntrComboBox);
    596     enableWidget(true, _uploadSamplRtcmClkCorrSpinBox);
    597589    enableWidget(true, _uploadSamplRtcmEphCorrSpinBox);
    598590    enableWidget(true, _uploadSamplSp3SpinBox);
     
    601593  else {
    602594    enableWidget(false, _uploadIntrComboBox);
    603     enableWidget(false, _uploadSamplRtcmClkCorrSpinBox);
    604595    enableWidget(false, _uploadSamplRtcmEphCorrSpinBox);
    605596    enableWidget(false, _uploadSamplSp3SpinBox);
     
    11301121  uploadHlpLayout->addWidget(new QLabel("Interval"),         0, 2, Qt::AlignRight);
    11311122  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);
    11411130
    11421131  QBoxLayout* uploadLayout = new QBoxLayout(QBoxLayout::TopToBottom);
     
    12921281  delUploadRowButton->setWhatsThis(tr("Hit 'Del Row' button to delete the highlighted line from the stream upload table."));
    12931282  _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."));
    12951283  _uploadSamplRtcmEphCorrSpinBox->setWhatsThis(tr("Select the Ephemeris Correction sampling interval in seconds. A value of zero '0' tells BNC to upload all available samples."));
    12961284  _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."));
     
    17531741  }
    17541742  settings.setValue("uploadIntr",             _uploadIntrComboBox->currentText());
    1755   settings.setValue("uploadSamplRtcmClkCorr", _uploadSamplRtcmClkCorrSpinBox->value());
    17561743  settings.setValue("uploadSamplRtcmEphCorr", _uploadSamplRtcmEphCorrSpinBox->value());
    17571744  settings.setValue("uploadSamplSp3",         _uploadSamplSp3SpinBox->value());
     
    22372224  if (iRow > 0) {
    22382225    enableWidget(true, _uploadIntrComboBox);
    2239     enableWidget(true, _uploadSamplRtcmClkCorrSpinBox);
    22402226    enableWidget(true, _uploadSamplRtcmEphCorrSpinBox);
    22412227    enableWidget(true, _uploadSamplClkRnxSpinBox);
     
    22442230  else {
    22452231    enableWidget(false, _uploadIntrComboBox);
    2246     enableWidget(false, _uploadSamplRtcmClkCorrSpinBox);
    22472232    enableWidget(false, _uploadSamplRtcmEphCorrSpinBox);
    22482233    enableWidget(false, _uploadSamplClkRnxSpinBox);
     
    24652450  if (nRows < 1) {
    24662451    enableWidget(false, _uploadIntrComboBox);
    2467     enableWidget(false, _uploadSamplRtcmClkCorrSpinBox);
    24682452    enableWidget(false, _uploadSamplRtcmEphCorrSpinBox);
    24692453    enableWidget(false, _uploadSamplSp3SpinBox);
  • trunk/BNC/bncwindow.h

    r4172 r4174  
    233233    QTableWidget* _uploadTable;
    234234    QComboBox*    _uploadIntrComboBox;
    235     QSpinBox*     _uploadSamplRtcmClkCorrSpinBox;
    236235    QSpinBox*     _uploadSamplRtcmEphCorrSpinBox;
    237236    QSpinBox*     _uploadSamplSp3SpinBox;
  • trunk/BNC/upload/bncrtnetuploadcaster.cpp

    r4153 r4174  
    4848  bncSettings settings;
    4949  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) {
    5356    _usedEph = 0;
    5457  }
     
    6063  // ----------
    6164  if (!outFileName.isEmpty()) {
    62     _outFile = new bncoutf(outFileName, intr, sampl);
     65    _outFile = new bncoutf(outFileName, intr, 0);
    6366  }
    6467  else {
     
    6972  // ------------
    7073  if (!rnxFileName.isEmpty()) {
    71     _rnx = new bncClockRinex(rnxFileName, intr, sampl);
     74    _rnx = new bncClockRinex(rnxFileName, intr, samplClkRnx);
    7275  }
    7376  else {
     
    7881  // ----------
    7982  if (!sp3FileName.isEmpty()) {
    80     _sp3 = new bncSP3(sp3FileName, intr, _samplOrb);
     83    _sp3 = new bncSP3(sp3FileName, intr, samplSp3);
    8184  }
    8285  else {
     
    298301      // ----------------------------------------------------------------
    299302      if (_usedEph) {
    300         if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) {
     303        if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    301304          (*_usedEph)[prn] = eph;
    302305        }
     
    396399  // Orbit and Clock Corrections together
    397400  // ------------------------------------
    398   if (_samplOrb == 0.0) {
     401  if (_samplRtcmEphCorr == 0.0) {
    399402    if (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) {
    400403      char obuffer[CLOCKORBIT_BUFFERSIZE];
     
    411414    if (co.NumberOfGPSSat > 0) {
    412415      char obuffer[CLOCKORBIT_BUFFERSIZE];
    413       if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) {
     416      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    414417        int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 1, obuffer, sizeof(obuffer));
    415418        if (len1 > 0) {
     
    425428    if (co.NumberOfGLONASSSat > 0) {
    426429      char obuffer[CLOCKORBIT_BUFFERSIZE];
    427       if (fmod(epoTime.gpssec(), _samplOrb) == 0.0) {
     430      if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) {
    428431        int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 1, obuffer, sizeof(obuffer));
    429432        if (len1 > 0) {
  • trunk/BNC/upload/bncrtnetuploadcaster.h

    r4111 r4174  
    4444  int            _SID;
    4545  int            _IOD;
    46   double         _samplOrb;
     46  double         _samplRtcmEphCorr;
    4747  double         _dx;
    4848  double         _dy;
Note: See TracChangeset for help on using the changeset viewer.