Changeset 1670 in ntrip


Ignore:
Timestamp:
Feb 28, 2009, 12:57:03 PM (15 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1668 r1670  
    292292void t_bns::readEpoch() {
    293293
     294  bnsSettings settings;
     295
    294296  // Read the first line (if not already read)
    295297  // -----------------------------------------
     
    376378              xx(3) *= 1e3;
    377379              xx(4) *= 1e-6;
     380
     381              if ( Qt::CheckState(settings.value("beClocks1").toInt()) == Qt::Checked) {
     382                xx(4) -= xx(5) / 299792458.0;
     383              }
    378384     
    379385              t_ephPair* pair = _ephList[prn];
  • trunk/BNS/bnssettings.cpp

    r1669 r1670  
    5353    setValue("startTab",    "0");
    5454    setValue("autoStart",   "0");
     55    setValue("beClocks1",   "0");
     56    setValue("beClocks2",   "0");
    5557    sync();
    5658  }
  • trunk/BNS/bnswindow.cpp

    r1668 r1670  
    182182  }
    183183  _outFile_1_LineEdit    = new QLineEdit(settings.value("outFile_1").toString());
     184  _beClocks1CheckBox  = new QCheckBox();
     185  _beClocks1CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks1").toInt()));
    184186
    185187  // Ephemeris Corrections II Options
     
    198200  }
    199201  _outFile_2_LineEdit    = new QLineEdit(settings.value("outFile_2").toString());
     202  _beClocks2CheckBox  = new QCheckBox();
     203  _beClocks2CheckBox->setCheckState(Qt::CheckState(settings.value("beClocks2").toInt()));
    200204
    201205  // RINEX Clocks Options
     
    265269  _sp3SamplSpinBox->setWhatsThis(tr("Select the SP3 orbit file sampling interval in seconds. A value of zero '0' tells BNS to store all available samples into SP3 orbit files."));
    266270  _autoStartCheckBox->setWhatsThis(tr("<p>Tick 'Auto start' for auto-start of BNS at startup time in window mode with preassigned processing options.</p>"));
     271  _beClocks1CheckBox->setWhatsThis(tr("<p>Send broadcast clocks instead of broadcast clock corrections and ignore the incoming clock estimates.</p>"));
     272  _beClocks2CheckBox->setWhatsThis(tr("<p>Send broadcast clocks instead of broadcast clock corrections and ignore the incoming clock estimates.</p>"));
    267273
    268274
     
    384390  layout_cas1->addWidget(new QLabel("  Save (full path)"), 2, 2, Qt::AlignRight);
    385391  layout_cas1->addWidget(_outFile_1_LineEdit,              2, 3, 1, 30);
    386   layout_cas1->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 3, 0, 1, 50);
     392  layout_cas1->addWidget(new QLabel("Broadcast clocks"),   3, 0);
     393  layout_cas1->addWidget(_beClocks1CheckBox,               3, 1);
     394  layout_cas1->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 4, 0, 1, 50);
    387395
    388396  tab_cas1->setLayout(layout_cas1);
     
    430438  layout_cas2->addWidget(new QLabel("  Save (full path)"), 2, 2, Qt::AlignRight);
    431439  layout_cas2->addWidget(_outFile_2_LineEdit,              2, 3, 1, 30);
    432   layout_cas2->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 3, 0, 1, 50);
     440  layout_cas2->addWidget(new QLabel("Broadcast clocks"),   3, 0);
     441  layout_cas2->addWidget(_beClocks2CheckBox,               3, 1);
     442  layout_cas2->addWidget(new QLabel("Produce broadcast ephemeris corrections, upload to caster, reference system, local storage."), 4, 0, 1, 50);
    433443
    434444  tab_cas2->setLayout(layout_cas2);
     
    692702  settings.setValue("sp3Sampl",    _sp3SamplSpinBox->value());
    693703  settings.setValue("startTab",    tabs->currentIndex());
     704  settings.setValue("beClocks1",   _beClocks1CheckBox->checkState());
     705  settings.setValue("beClocks2",   _beClocks2CheckBox->checkState());
    694706}
    695707
  • trunk/BNS/bnswindow.h

    r1668 r1670  
    100100  QCheckBox* _fileAppendCheckBox;
    101101  QCheckBox* _autoStartCheckBox;
     102  QCheckBox* _beClocks1CheckBox;
     103  QCheckBox* _beClocks2CheckBox;
    102104
    103105  QTextEdit*  _log;
Note: See TracChangeset for help on using the changeset viewer.