Ignore:
Timestamp:
Mar 11, 2022, 9:57:17 AM (3 years ago)
Author:
stuerze
Message:

Bias SINEX file can be written now during SSR upload

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r9512 r9652  
    2020#include "bncephuser.h"
    2121#include "bncclockrinex.h"
     22#include "bncbiassinex.h"
    2223#include "bncsp3.h"
    2324#include "gnss.h"
     
    3334    const QString& userName, const QString& password,
    3435    const QString& crdTrafo, const QString& ssrFormat, bool CoM, const QString& sp3FileName,
    35     const QString& rnxFileName, int PID, int SID, int IOD, int iRow) :
     36    const QString& rnxFileName, const QString& bsxFileName, int PID, int SID, int IOD, int iRow) :
    3637    bncUploadCaster(mountpoint, outHost, outPort, ntripVersion, userName, password, iRow, 0) {
    3738
     
    5354  if (!rnxFileName.isEmpty()) {
    5455    _casterID += " " + rnxFileName;
     56  }
     57
     58  if (!bsxFileName.isEmpty()) {
     59    _casterID += " " + bsxFileName;
    5560  }
    5661
     
    8792  }
    8893  int samplClkRnx = settings.value("uploadSamplClkRnx").toInt();
    89   int samplSp3 = settings.value("uploadSamplSp3").toInt() * 60;
     94  int samplSp3    = settings.value("uploadSamplSp3").toInt() * 60;
     95  int samplBiaSnx = settings.value("uploadSamplBiaSnx").toInt();
    9096
    9197  if (_samplRtcmEphCorr == 0.0) {
     
    113119    _sp3 = 0;
    114120  }
     121
     122  // SINEX writer
     123  // ------------
     124  if (!bsxFileName.isEmpty()) {
     125    _bsx = new bncBiasSinex(bsxFileName, intr, samplBiaSnx);
     126  }
     127  else {
     128    _bsx = 0;
     129  }
     130
    115131
    116132  // Set Transformation Parameters
     
    674690            biasSat->Biases[ii].Type = type;
    675691            biasSat->Biases[ii].Bias = it.value();
     692            if (_bsx) {
     693              QString obsCode = 'C' + it.key();
     694              _bsx->write(epoTime.gpsw(), epoTime.gpssec(), prnStr, obsCode, it.value());
     695            }
    676696          }
    677697        }
     
    737757            phasebiasSat->Biases[ii].SignalsWideLaneIntegerIndicator = pbSig.wlIndicator;
    738758            phasebiasSat->Biases[ii].SignalDiscontinuityCounter = pbSig.discontinuityCounter;
     759            if (_bsx) {
     760              QString obsCode = 'L' + pbSig.type;
     761              _bsx->write(epoTime.gpsw(), epoTime.gpssec(), prnStr, obsCode, pbSig.bias);
     762            }
    739763          }
    740764        }
Note: See TracChangeset for help on using the changeset viewer.