Changeset 9652 in ntrip for trunk/BNC/src/upload


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

Bias SINEX file can be written now during SSR upload

Location:
trunk/BNC/src/upload
Files:
3 edited

Legend:

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

    r9025 r9652  
    7676                                                       hlp[3], hlp[4],
    7777                                                       hlp[5], hlp[6], hlp[7], CoM,
    78                                                        hlp[9], hlp[10],
     78                                                       hlp[9], hlp[10],hlp[11],
    7979                                                       PID, SID, IOD, iRow);
    8080      newCaster->start();
  • 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        }
  • trunk/BNC/src/upload/bncrtnetuploadcaster.h

    r9512 r9652  
    1414class bncClockRinex;
    1515class bncSP3;
     16class bncBiasSinex;
    1617
    1718class bncRtnetUploadCaster : public bncUploadCaster {
     
    2627                  const QString& sp3FileName,
    2728                  const QString& rnxFileName,
     29                  const QString& bsxFileName,
    2830                  int PID, int SID, int IOD, int iRow);
    2931  void decodeRtnetStream(char* buffer, int bufLen);
     
    7880  bncClockRinex* _rnx;
    7981  bncSP3*        _sp3;
     82  bncBiasSinex*  _bsx;
    8083  QMap<QString, const t_eph*>* _usedEph;
    8184};
Note: See TracChangeset for help on using the changeset viewer.