Changeset 11057 in ntrip for trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
- Timestamp:
- Sep 30, 2026, 11:30:26 AM (45 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r11047 r11057 71 71 _out = 0; 72 72 73 Qt::ConnectionType conType = BNC_CORE->decoderConnectionType(); 73 74 connect(this, SIGNAL(newOrbCorrections(QList<t_orbCorr>)), 74 BNC_CORE, SLOT(slotNewOrbCorrections(QList<t_orbCorr>))); 75 BNC_CORE, SLOT(slotNewOrbCorrections(QList<t_orbCorr>)), conType); 75 76 76 77 connect(this, SIGNAL(newClkCorrections(QList<t_clkCorr>)), 77 BNC_CORE, SLOT(slotNewClkCorrections(QList<t_clkCorr>))); 78 BNC_CORE, SLOT(slotNewClkCorrections(QList<t_clkCorr>)), conType); 78 79 79 80 connect(this, SIGNAL(newCodeBiases(QList<t_satCodeBias>)), 80 BNC_CORE, SLOT(slotNewCodeBiases(QList<t_satCodeBias>))); 81 BNC_CORE, SLOT(slotNewCodeBiases(QList<t_satCodeBias>)), conType); 81 82 82 83 connect(this, SIGNAL(newPhaseBiases(QList<t_satPhaseBias>)), 83 BNC_CORE, SLOT(slotNewPhaseBiases(QList<t_satPhaseBias>))); 84 BNC_CORE, SLOT(slotNewPhaseBiases(QList<t_satPhaseBias>)), conType); 84 85 85 86 connect(this, SIGNAL(newTec(t_vTec)), 86 BNC_CORE, SLOT(slotNewTec(t_vTec))); 87 BNC_CORE, SLOT(slotNewTec(t_vTec)), conType); 87 88 88 89 connect(this, SIGNAL(newMetaData(t_metaData)), 89 BNC_CORE, SLOT(slotNewMetaData(t_metaData))); 90 BNC_CORE, SLOT(slotNewMetaData(t_metaData)), conType); 90 91 91 92 connect(this, SIGNAL(newSatAntennas(QList<t_satAntenna>)), 92 BNC_CORE, SLOT(slotNewSatAntennas(QList<t_satAntenna>))); 93 BNC_CORE, SLOT(slotNewSatAntennas(QList<t_satAntenna>)), conType); 93 94 94 95 connect(this, SIGNAL(providerIDChanged(QString)), 95 BNC_CORE, SIGNAL(providerIDChanged(QString))); 96 BNC_CORE, SIGNAL(providerIDChanged(QString)), conType); 96 97 97 98 connect(this, SIGNAL(newMessage(QByteArray,bool)), … … 784 785 // Dump all older epochs 785 786 // --------------------- 787 dumpEpochs(false); 788 } 789 790 // Emit and write the collected corrections of all epochs older than 791 // _lastTime (all epochs if all is set, e.g. at the end of a replay) 792 //////////////////////////////////////////////////////////////////////////// 793 void RTCM3coDecoder::dumpEpochs(bool all) { 786 794 QMutableMapIterator<bncTime, QList<t_orbCorr> > itOrb(_orbCorrections); 787 795 while (itOrb.hasNext()) { 788 796 itOrb.next(); 789 if (itOrb.key() < _lastTime) { 797 if (all || itOrb.key() < _lastTime) { 790 798 emit newOrbCorrections(itOrb.value()); 791 799 t_orbCorr::writeEpoch(_out, itOrb.value()); … … 796 804 while (itClk.hasNext()) { 797 805 itClk.next(); 798 if (itClk.key() < _lastTime) { 806 if (all || itClk.key() < _lastTime) { 799 807 emit newClkCorrections(itClk.value()); 800 808 t_clkCorr::writeEpoch(_out, itClk.value()); … … 805 813 while (itCB.hasNext()) { 806 814 itCB.next(); 807 if (itCB.key() < _lastTime) { 815 if (all || itCB.key() < _lastTime) { 808 816 emit newCodeBiases(itCB.value()); 809 817 t_satCodeBias::writeEpoch(_out, itCB.value()); … … 814 822 while (itPB.hasNext()) { 815 823 itPB.next(); 816 if (itPB.key() < _lastTime) { 824 if (all || itPB.key() < _lastTime) { 817 825 emit newPhaseBiases(itPB.value()); 818 826 t_satPhaseBias::writeEpoch(_out, itPB.value()); … … 823 831 while (itTec.hasNext()) { 824 832 itTec.next(); 825 if (itTec.key() < _lastTime) { 833 if (all || itTec.key() < _lastTime) { 826 834 emit newTec(itTec.value()); 827 835 t_vTec::write(_out, itTec.value()); … … 832 840 while (itMD.hasNext()) { 833 841 itMD.next(); 834 if (itMD.key() < _lastTime) { 842 if (all || itMD.key() < _lastTime) { 835 843 emit newMetaData(itMD.value()); 836 844 t_metaData::write(_out, itMD.value()); … … 841 849 while (itAnt.hasNext()) { 842 850 itAnt.next(); 843 if (itAnt.key() < _lastTime) { 851 if (all || itAnt.key() < _lastTime) { 844 852 emit newSatAntennas(itAnt.value()); 845 853 t_satAntenna::writeEpoch(_out, itAnt.value()); 846 854 itAnt.remove(); 847 855 } 856 } 857 if (all && _out) { 858 _out->flush(); 848 859 } 849 860 } … … 1126 1137 else if (epoSecGlo != -1) { 1127 1138 QDate date = dateAndTimeFromGPSweek(currentTime.gpsw(), currentTime.gpssec()).date(); 1128 if (_type == IGSssr) {1129 epoSecGlo = epoSecGlo + gnumleap(date.year(), date.month(), date.day());1130 }1139 // IGS-SSR: the SSR Epoch Time (IDF003, 20 bit) is given in one continuous 1140 // time scale for all GNSS, i.e. GPS seconds of week also for GLONASS 1141 // (IGS SSR v1.00) - no conversion 1131 1142 if (_type == RTCMssr || _type == RTCMnewssr) { 1132 1143 // Same GLONASS epoch wire convention (UTC+3h) as RTCMssr … … 1145 1156 } 1146 1157 else if (epoSecBds != -1) { 1147 epoSecBds += 14.0; 1148 if (epoSecBds > 604800.0) { 1149 epoSecBds -= 7.0*24.0*60.0*60.0; 1158 // RTCM-SSR: BDT; IGS-SSR: GPS time scale for all GNSS (IDF003) 1159 if (_type != IGSssr) { 1160 epoSecBds += 14.0; 1161 if (epoSecBds > 604800.0) { 1162 epoSecBds -= 7.0*24.0*60.0*60.0; 1163 } 1150 1164 } 1151 1165 _lastTime.set(currentWeek, epoSecBds);
Note:
See TracChangeset
for help on using the changeset viewer.
