Changeset 8025 in ntrip
- Timestamp:
- Aug 25, 2016, 12:00:52 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM/RTCM2Decoder.cpp
r8023 r8025 144 144 t_frqObs* frqObs1C = new t_frqObs; 145 145 frqObs1C->_rnxType2ch = "1C"; 146 frqObs1C->_codeValid = true; 146 147 frqObs1C->_code = _ObsBlock.rng_C1[iSat]; 147 if (frqObs1C->_code) {148 frqObs1C->_codeValid = true;149 }150 else {151 frqObs1C->_codeValid = false;152 }153 148 obs._obs.push_back(frqObs1C); 154 149 155 150 t_frqObs* frqObs1P = new t_frqObs; 156 151 frqObs1P->_rnxType2ch = (sys == 'G') ? "1W" : "1P"; 152 frqObs1P->_codeValid = true; 157 153 frqObs1P->_code = _ObsBlock.rng_P1[iSat]; 158 if (frqObs1P->_code) { 159 frqObs1P->_codeValid = true; 160 } 161 else { 162 frqObs1P->_codeValid = false; 163 } 154 frqObs1P->_phaseValid = true; 164 155 frqObs1P->_phase = _ObsBlock.resolvedPhase_L1(iSat); 165 if (frqObs1P->_phase) {166 frqObs1P->_phaseValid = true;167 }168 else {169 frqObs1P->_phaseValid = false;170 }171 156 //frqObs1P->_slipCounter = _ObsBlock.slip_L1[iSat]; 172 157 frqObs1P->_slipCounter = -1; // because RTCM2 definition is vice versa to RTCM3 … … 175 160 t_frqObs* frqObs2P = new t_frqObs; 176 161 frqObs2P->_rnxType2ch = (sys == 'G') ? "2W" : "2P"; 162 frqObs2P->_codeValid = true; 177 163 frqObs2P->_code = _ObsBlock.rng_P2[iSat]; 178 if (frqObs2P->_code) { 179 frqObs2P->_codeValid = true; 180 } 181 else { 182 frqObs2P->_codeValid = false; 183 } 164 frqObs2P->_phaseValid = true; 184 165 frqObs2P->_phase = _ObsBlock.resolvedPhase_L2(iSat); 185 if (frqObs2P->_phase) {186 frqObs2P->_phaseValid = true;187 }188 else {189 frqObs2P->_phaseValid = false;190 }191 166 //frqObs2P->_slipCounter = _ObsBlock.slip_L2[iSat]; 192 167 frqObs2P->_slipCounter = -1; // because RTCM2 definition is vice versa to RTCM3 … … 198 173 } 199 174 } 175 200 176 else if (_PP.ID() == 20 || _PP.ID() == 21) { 201 177 _msg2021.extract(_PP);
Note:
See TracChangeset
for help on using the changeset viewer.