Ignore:
Timestamp:
Nov 26, 2026, 1:23:29 PM (less than one hour ago)
Author:
stuerze
Message:

proposed IGS SSR 202 message added in SSR QC

File:
1 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()) {
Note: See TracChangeset for help on using the changeset viewer.