Changeset 6974 in ntrip for trunk/BNC/src/PPP_SSR_I/pppClient.cpp
- Timestamp:
- Jun 25, 2015, 4:35:34 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/BNC/src/PPP_SSR_I/pppClient.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_SSR_I/pppClient.cpp
r6969 r6974 92 92 satData->P2 = 0.0; 93 93 satData->P5 = 0.0; 94 satData->P7 = 0.0; 94 95 satData->L1 = 0.0; 95 96 satData->L2 = 0.0; 96 97 satData->L5 = 0.0; 98 satData->L7 = 0.0; 97 99 for (unsigned ifrq = 0; ifrq < obs->_obs.size(); ifrq++) { 98 100 t_frqObs* frqObs = obs->_obs[ifrq]; … … 112 114 if (frqObs->_slip) satData->slipFlag = true; 113 115 } 116 else if (frqObs->_rnxType2ch[0] == '7') { 117 if (frqObs->_codeValid) satData->P7 = frqObs->_code; 118 if (frqObs->_phaseValid) satData->L7 = frqObs->_phase; 119 if (frqObs->_slip) satData->slipFlag = true; 120 } 114 121 } 115 122 putNewObs(satData); … … 245 252 } 246 253 } 254 255 // Set Observations BDS 256 // --------------------- 257 else if (satData->system() == 'C' && _opt->useSystem('C')) { 258 if (satData->P2 != 0.0 && satData->P7 != 0.0 && 259 satData->L2 != 0.0 && satData->L7 != 0.0 ) { 260 double f2 = t_CST::freq(t_frequency::C2, 0); 261 double f7 = t_CST::freq(t_frequency::C7, 0); 262 double a2 = f2 * f2 / (f2 * f2 - f7 * f7); 263 double a7 = - f7 * f7 / (f2 * f2 - f7 * f7); 264 satData->L2 = satData->L2 * t_CST::c / f2; 265 satData->L7 = satData->L7 * t_CST::c / f7; 266 satData->P3 = a2 * satData->P2 + a7 * satData->P7; 267 satData->L3 = a2 * satData->L2 + a7 * satData->L7; 268 satData->lambda3 = a2 * t_CST::c / f2 + a7 * t_CST::c / f7; 269 satData->lkA = a2; 270 satData->lkB = a7; 271 _epoData->satData[satData->prn] = satData; 272 } 273 else { 274 delete satData; 275 } 276 } 247 277 } 248 278
Note:
See TracChangeset
for help on using the changeset viewer.
