Changeset 11227 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Nov 26, 2026, 1:23:29 PM (3 days ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 4 edited
-
RTCM3coDecoder.cpp (modified) (7 diffs)
-
RTCM3coDecoder.h (modified) (3 diffs)
-
clock_and_orbit/clock_orbit.h (modified) (1 diff)
-
clock_and_orbit/clock_orbit_igs.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r11221 r11227 87 87 BNC_CORE, SLOT(slotNewTec(t_vTec)), conType); 88 88 89 connect(this, SIGNAL(newTecRms(t_vTec)), 90 BNC_CORE, SLOT(slotNewTecRms(t_vTec)), conType); 91 89 92 connect(this, SIGNAL(newMetaData(t_metaData)), 90 93 BNC_CORE, SLOT(slotNewMetaData(t_metaData)), conType); … … 111 114 _providerID[2] = -1; 112 115 113 _vTecMoreFollows = false; 116 _vTecMoreFollows = false; 117 _vTecRmsMoreFollows = false; 114 118 115 119 for (unsigned s = 0; s < CLOCKORBIT_SATNUM; s++) { … … 143 147 _phaseBiases.clear(); 144 148 _vTecMap.clear(); 149 _vTecRmsMap.clear(); 145 150 _metaDataMap.clear(); 146 151 _satAntennas.clear(); … … 309 314 // VTEC message starts the record of its epoch anew (sendResults()) 310 315 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 } 312 322 } 313 323 // Keep _phaseBias intact: an Extended Phase Bias message (COBOFS_PBEXT) … … 682 692 // 400 times (Nov 2026), which summed up to 3900 TECU in PPP and SSR QC. 683 693 // 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(); 690 704 for (unsigned ii = 0; ii < _vTEC.NumLayers; ii++) { 691 705 const SsrCorr::VTEC::IonoLayers& ionoLayer = _vTEC.Layers[ii]; … … 700 714 } 701 715 } 702 _vTecMap[_lastTime]._layers.push_back(layer);716 vTec._layers.push_back(layer); 703 717 } 704 718 } … … 936 950 } 937 951 } 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 } 938 960 QMutableMapIterator<bncTime, t_metaData> itMD(_metaDataMap); 939 961 while (itMD.hasNext()) { -
trunk/BNC/src/RTCM3/RTCM3coDecoder.h
r11221 r11227 66 66 void newPhaseBiases(QList<t_satPhaseBias>); 67 67 void newTec(t_vTec); 68 void newTecRms(t_vTec); // RMS of the VTEC (IGS-SSR IM202), only for the SSR QC 68 69 void newMetaData(t_metaData); 69 70 void newSatAntennas(QList<t_satAntenna>); … … 133 134 QMap<bncTime, QList<t_satPhaseBias> > _phaseBiases; 134 135 QMap<bncTime, t_vTec> _vTecMap; 136 QMap<bncTime, t_vTec> _vTecRmsMap; // RMS of the VTEC (IM202), not written to the SSR file 135 137 QMap<bncTime, t_metaData> _metaDataMap; 136 138 QMap<bncTime, QList<t_satAntenna> > _satAntennas; … … 138 140 bool _antennaReceived[CLOCKORBIT_SATNUM]; 139 141 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) 140 143 unsigned int _antennaSentProviderID[CLOCKORBIT_COUNTSAT]; 141 144 unsigned int _antennaSentIOD[CLOCKORBIT_COUNTSAT]; -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit.h
r11194 r11227 449 449 unsigned int SSRSolutionID; 450 450 unsigned int NumLayers; /* 1-4 */ 451 unsigned int RmsMap; /* 1: RMS of the VTEC (IGS-SSR IM202, CAS proposal Dec 2025), 0: VTEC */ 451 452 double Quality; 452 453 struct IonoLayers { -
trunk/BNC/src/RTCM3/clock_and_orbit/clock_orbit_igs.cpp
r11042 r11227 314 314 } 315 315 316 static const unsigned int VTEC_RMS_IGS = 202; // IGS-SSR IM202 (proposal), RMS of IM201 317 316 318 enum GCOB_RETURN SsrCorrIgs::GetSSR(struct ClockOrbit *co, struct CodeBias *cb,struct VTEC *v, 317 319 struct PhaseBias *pb, struct MetaData *md, struct Antenna* a, const char *buffer, size_t size, int *bytesused) { … … 357 359 *bytesused = sizeofrtcmblock + 6; 358 360 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) { 360 365 unsigned int l, o, d; 361 366 if (!v) 362 367 return GCOBR_NOVTECPARAMETER; 363 368 memset(v, 0, sizeof(*v)); 369 v->RmsMap = (igstype == VTEC_RMS_IGS) ? 1 : 0; 364 370 D_GPS_EPOCH_TIME(v->EpochTime) 365 371 D_SSR_UPDATE_INTERVAL(v->UpdateInterval)
Note:
See TracChangeset
for help on using the changeset viewer.
