Ignore:
Timestamp:
May 15, 2012, 10:27:42 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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) {
Note: See TracChangeset for help on using the changeset viewer.