Changeset 9089 in ntrip for branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
- Timestamp:
- Sep 2, 2020, 10:49:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/RTCM3/RTCM3Decoder.cpp
r9049 r9089 148 148 frqObs->_codeValid = frqObs->_phaseValid = true; 149 149 } 150 GETBITS( i, 7);151 frqObs->_lockTime = lti2sec(type, i);150 GETBITS(frqObs->_lockTimeIndicator, 7); 151 frqObs->_lockTime = lti2sec(type, frqObs->_lockTimeIndicator); 152 152 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0 && frqObs->_phaseValid); 153 frqObs->_slipCounter = i;154 153 if (type == 1002 || type == 1004) { 155 154 GETBITS(amb, 8); … … 194 193 frqObs->_phaseValid = true; 195 194 } 196 GETBITS( i, 7);197 frqObs->_lockTime = lti2sec(type, i);195 GETBITS(frqObs->_lockTimeIndicator, 7); 196 frqObs->_lockTime = lti2sec(type, frqObs->_lockTimeIndicator); 198 197 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0 && frqObs->_phaseValid); 199 frqObs->_slipCounter = i;200 198 if (type == 1004) { 201 199 GETBITS(i, 8); … … 768 766 frqObs->_lockTime = lti2sec(type,ll[count]); 769 767 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 770 frqObs->_ slipCounter = ll[count];768 frqObs->_lockTimeIndicator = ll[count]; 771 769 } 772 770 break; … … 777 775 frqObs->_codeValid = true; 778 776 } 779 780 777 if (cp[count] > -1.0 / (1 << 8)) { 781 778 frqObs->_phase = cp[count] * LIGHTSPEED / 1000.0 / cd.wl … … 784 781 frqObs->_lockTime = lti2sec(type,ll[count]); 785 782 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 786 frqObs->_ slipCounter = ll[count];783 frqObs->_lockTimeIndicator = ll[count]; 787 784 } 788 785 break; … … 799 796 frqObs->_lockTime = lti2sec(type,ll[count]); 800 797 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 801 frqObs->_ slipCounter = ll[count];798 frqObs->_lockTimeIndicator = ll[count]; 802 799 } 803 800 frqObs->_snr = cnr[count]; … … 816 813 frqObs->_lockTime = lti2sec(type,ll[count]); 817 814 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 818 frqObs->_ slipCounter = ll[count];815 frqObs->_lockTimeIndicator = ll[count]; 819 816 } 820 817 frqObs->_snr = cnr[count]; … … 837 834 frqObs->_lockTime = lti2sec(type,ll[count]); 838 835 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 839 frqObs->_ slipCounter = ll[count];836 frqObs->_lockTimeIndicator = ll[count]; 840 837 } 841 838 … … 855 852 frqObs->_lockTime = lti2sec(type,ll[count]); 856 853 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 857 frqObs->_ slipCounter = ll[count];854 frqObs->_lockTimeIndicator = ll[count]; 858 855 } 859 856 … … 943 940 frqObs->_codeValid = frqObs->_phaseValid = true; 944 941 } 945 GETBITS( i, 7);946 frqObs->_lockTime = lti2sec(type, i);942 GETBITS(frqObs->_lockTimeIndicator, 7); 943 frqObs->_lockTime = lti2sec(type, frqObs->_lockTimeIndicator); 947 944 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0 && frqObs->_phaseValid); 948 frqObs->_slipCounter = i;949 945 if (type == 1010 || type == 1012) { 950 946 GETBITS(amb, 7); … … 989 985 frqObs->_phaseValid = true; 990 986 } 991 GETBITS( i, 7);992 frqObs->_lockTime = lti2sec(type, i);987 GETBITS(frqObs->_lockTimeIndicator, 7); 988 frqObs->_lockTime = lti2sec(type, frqObs->_lockTimeIndicator); 993 989 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0 && frqObs->_phaseValid); 994 frqObs->_slipCounter = i;995 990 if (type == 1012) { 996 991 GETBITS(i, 8);
Note:
See TracChangeset
for help on using the changeset viewer.