Changeset 9088 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Sep 2, 2020, 10:42:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r9048 r9088 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; … … 783 781 frqObs->_lockTime = lti2sec(type,ll[count]); 784 782 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 785 frqObs->_ slipCounter = ll[count];783 frqObs->_lockTimeIndicator = ll[count]; 786 784 } 787 785 break; … … 798 796 frqObs->_lockTime = lti2sec(type,ll[count]); 799 797 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 800 frqObs->_ slipCounter = ll[count];798 frqObs->_lockTimeIndicator = ll[count]; 801 799 } 802 800 frqObs->_snr = cnr[count]; … … 815 813 frqObs->_lockTime = lti2sec(type,ll[count]); 816 814 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 817 frqObs->_ slipCounter = ll[count];815 frqObs->_lockTimeIndicator = ll[count]; 818 816 } 819 817 frqObs->_snr = cnr[count]; … … 836 834 frqObs->_lockTime = lti2sec(type,ll[count]); 837 835 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 838 frqObs->_ slipCounter = ll[count];836 frqObs->_lockTimeIndicator = ll[count]; 839 837 } 840 838 … … 854 852 frqObs->_lockTime = lti2sec(type,ll[count]); 855 853 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0); 856 frqObs->_ slipCounter = ll[count];854 frqObs->_lockTimeIndicator = ll[count]; 857 855 } 858 856 … … 938 936 if ((i & ((1 << 20) - 1)) != 0x80000) { 939 937 frqObs->_code = l1range * 0.02; 940 frqObs->_phase = (l1range * 0.02 + i * 0.0005) 941 / GLO_WAVELENGTH_L1(freq - 7); 938 frqObs->_phase = (l1range * 0.02 + i * 0.0005) / GLO_WAVELENGTH_L1(freq - 7); 942 939 frqObs->_codeValid = frqObs->_phaseValid = true; 943 940 } 944 GETBITS( i, 7);945 frqObs->_lockTime = lti2sec(type, i);941 GETBITS(frqObs->_lockTimeIndicator, 7); 942 frqObs->_lockTime = lti2sec(type, frqObs->_lockTimeIndicator); 946 943 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0 && frqObs->_phaseValid); 947 frqObs->_slipCounter = i;948 944 if (type == 1010 || type == 1012) { 949 945 GETBITS(amb, 7); … … 988 984 frqObs->_phaseValid = true; 989 985 } 990 GETBITS( i, 7);991 frqObs->_lockTime = lti2sec(type, i);986 GETBITS(frqObs->_lockTimeIndicator, 7); 987 frqObs->_lockTime = lti2sec(type, frqObs->_lockTimeIndicator); 992 988 frqObs->_lockTimeValid = (frqObs->_lockTime >= 0.0 && frqObs->_phaseValid); 993 frqObs->_slipCounter = i;994 989 if (type == 1012) { 995 990 GETBITS(i, 8);
Note:
See TracChangeset
for help on using the changeset viewer.