Changeset 11227 in ntrip for trunk/BNC/src/RTCM3


Ignore:
Timestamp:
Nov 26, 2026, 1:23:29 PM (3 days ago)
Author:
stuerze
Message:

proposed IGS SSR 202 message added in SSR QC

Location:
trunk/BNC/src/RTCM3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r11221 r11227  
    8787          BNC_CORE, SLOT(slotNewTec(t_vTec)), conType);
    8888
     89  connect(this, SIGNAL(newTecRms(t_vTec)),
     90          BNC_CORE, SLOT(slotNewTecRms(t_vTec)), conType);
     91
    8992  connect(this, SIGNAL(newMetaData(t_metaData)),
    9093          BNC_CORE, SLOT(slotNewMetaData(t_metaData)), conType);
    … …  
    111114  _providerID[2] = -1;
    112115
    113   _vTecMoreFollows = false;
     116  _vTecMoreFollows    = false;
     117  _vTecRmsMoreFollows = false;
    114118
    115119  for (unsigned s = 0; s < CLOCKORBIT_SATNUM; s++) {
    … …  
    143147  _phaseBiases.clear();
    144148  _vTecMap.clear();
     149  _vTecRmsMap.clear();
    145150  _metaDataMap.clear();
    146151  _satAntennas.clear();
    … …  
    309314        // VTEC message starts the record of its epoch anew (sendResults())
    310315        if (_vTEC.NumLayers > 0) {
    311           _vTecMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS);
     316          if (_vTEC.RmsMap) {
     317            _vTecRmsMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS);
     318          }
     319          else {
     320            _vTecMoreFollows = (irc == GCOBR_MESSAGEFOLLOWS);
     321          }
    312322        }
    313323        // Keep _phaseBias intact: an Extended Phase Bias message (COBOFS_PBEXT)
    … …  
    682692    // 400 times (Nov 2026), which summed up to 3900 TECU in PPP and SSR QC.
    683693    // Only the continuation of a multi-message model (previous MMI 1) appends.
    684     if (!_vTecMoreFollows) {
    685       _vTecMap[_lastTime] = t_vTec();
    686     }
    687     _vTecMap[_lastTime]._time  = _lastTime;
    688     _vTecMap[_lastTime]._updateInt =  _vTEC.UpdateInterval;
    689     _vTecMap[_lastTime]._staID = _staID.toStdString();
     694    // The RMS of the VTEC (IGS-SSR IM202, same layout) is kept apart: it
     695    // goes to the SSR QC only, not to the SSR file or PPP.
     696    QMap<bncTime, t_vTec>& tecMap = _vTEC.RmsMap ? _vTecRmsMap : _vTecMap;
     697    if (!(_vTEC.RmsMap ? _vTecRmsMoreFollows : _vTecMoreFollows)) {
     698      tecMap[_lastTime] = t_vTec();
     699    }
     700    t_vTec& vTec = tecMap[_lastTime];
     701    vTec._time  = _lastTime;
     702    vTec._updateInt =  _vTEC.UpdateInterval;
     703    vTec._staID = _staID.toStdString();
    690704    for (unsigned ii = 0; ii < _vTEC.NumLayers; ii++) {
    691705      const SsrCorr::VTEC::IonoLayers& ionoLayer = _vTEC.Layers[ii];
    … …  
    700714        }
    701715      }
    702       _vTecMap[_lastTime]._layers.push_back(layer);
     716      vTec._layers.push_back(layer);
    703717    }
    704718  }
    … …  
    936950    }
    937951  }
     952  QMutableMapIterator<bncTime, t_vTec> itTecRms(_vTecRmsMap);
     953  while (itTecRms.hasNext()) {
     954    itTecRms.next();
     955    if (all || itTecRms.key() < _lastTime) {
     956      emit newTecRms(itTecRms.value());
     957      itTecRms.remove();
     958    }
     959  }
    938960  QMutableMapIterator<bncTime, t_metaData> itMD(_metaDataMap);
    939961  while (itMD.hasNext()) {
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.h

    r11221 r11227  
    6666  void newPhaseBiases(QList<t_satPhaseBias>);
    6767  void newTec(t_vTec);
     68  void newTecRms(t_vTec);   // RMS of the VTEC (IGS-SSR IM202), only for the SSR QC
    6869  void newMetaData(t_metaData);
    6970  void newSatAntennas(QList<t_satAntenna>);
    … …  
    133134  QMap<bncTime, QList<t_satPhaseBias> > _phaseBiases;
    134135  QMap<bncTime, t_vTec>                 _vTecMap;
     136  QMap<bncTime, t_vTec>                 _vTecRmsMap;     // RMS of the VTEC (IM202), not written to the SSR file
    135137  QMap<bncTime, t_metaData>             _metaDataMap;
    136138  QMap<bncTime, QList<t_satAntenna> >   _satAntennas;
    … …  
    138140  bool                                  _antennaReceived[CLOCKORBIT_SATNUM];
    139141  bool                                  _vTecMoreFollows; // last VTEC message had MMI 1: the next one continues its epoch
     142  bool                                  _vTecRmsMoreFollows; // the same for the RMS of the VTEC (IM202)
    140143  unsigned int                          _antennaSentProviderID[CLOCKORBIT_COUNTSAT];
    141144  unsigned int                          _antennaSentIOD[CLOCKORBIT_COUNTSAT];
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h

    r11194 r11227  
    449449    unsigned int SSRSolutionID;
    450450    unsigned int NumLayers; /* 1-4 */
     451    unsigned int RmsMap; /* 1: RMS of the VTEC (IGS-SSR IM202, CAS proposal Dec 2025), 0: VTEC */
    451452    double Quality;
    452453    struct IonoLayers {
  • trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp

    r11042 r11227  
    314314}
    315315
     316static const unsigned int VTEC_RMS_IGS = 202; // IGS-SSR IM202 (proposal), RMS of IM201
     317
    316318enum GCOB_RETURN SsrCorrIgs::GetSSR(struct ClockOrbit *co, struct CodeBias *cb,struct VTEC *v,
    317319    struct PhaseBias *pb, struct MetaData *md, struct Antenna* a, const char *buffer, size_t size, int *bytesused) {
    … …  
    357359    *bytesused = sizeofrtcmblock + 6;
    358360
    359   if (igstype == VTEC_BASE) {
     361  // IM202: Ionospheric RMS spherical harmonics ("Proposal of New IGS-SSR
     362  // Ionospheric RMS Message", N. Wang, CAS, Dec 2025), same layout as IM201;
     363  // a message shorter than its header is rejected (GCOBR_SHORTMESSAGE)
     364  if (igstype == VTEC_BASE || igstype == VTEC_RMS_IGS) {
    360365    unsigned int l, o, d;
    361366    if (!v)
    362367      return GCOBR_NOVTECPARAMETER;
    363368    memset(v, 0, sizeof(*v));
     369    v->RmsMap = (igstype == VTEC_RMS_IGS) ? 1 : 0;
    364370    D_GPS_EPOCH_TIME(v->EpochTime)
    365371    D_SSR_UPDATE_INTERVAL(v->UpdateInterval)
Note: See TracChangeset for help on using the changeset viewer.