Changeset 6967 in ntrip
- Timestamp:
- Jun 25, 2015, 11:20:07 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP_SSR_I/pppClient.cpp
r6920 r6967 160 160 void t_pppClient::putNewObs(t_satData* satData) { 161 161 162 // Set Observations GPS and Glonass 163 // -------------------------------- 164 if (satData->system() == 'G' || satData->system() == 'R') { 162 // Set Observations GPS 163 // -------------------- 164 if (satData->system() == 'G') { 165 if (satData->P1 != 0.0 && satData->P2 != 0.0 && 166 satData->L1 != 0.0 && satData->L2 != 0.0 ) { 167 t_frequency::type fType1 = t_lc::toFreq(satData->system(), t_lc::l1); 168 t_frequency::type fType2 = t_lc::toFreq(satData->system(), t_lc::l2); 169 double f1 = t_CST::freq(fType1, 0); 170 double f2 = t_CST::freq(fType2, 0); 171 double a1 = f1 * f1 / (f1 * f1 - f2 * f2); 172 double a2 = - f2 * f2 / (f1 * f1 - f2 * f2); 173 satData->L1 = satData->L1 * t_CST::c / f1; 174 satData->L2 = satData->L2 * t_CST::c / f2; 175 satData->P3 = a1 * satData->P1 + a2 * satData->P2; 176 satData->L3 = a1 * satData->L1 + a2 * satData->L2; 177 satData->lambda3 = a1 * t_CST::c / f1 + a2 * t_CST::c / f2; 178 satData->lkA = a1; 179 satData->lkB = a2; 180 _epoData->satData[satData->prn] = satData; 181 } 182 else { 183 delete satData; 184 } 185 } 186 187 // Set Observations Glonass 188 // ------------------------ 189 if (satData->system() == 'R' && _opt->useSystem('R')) { 165 190 if (satData->P1 != 0.0 && satData->P2 != 0.0 && 166 191 satData->L1 != 0.0 && satData->L2 != 0.0 ) { … … 200 225 // Set Observations Galileo 201 226 // ------------------------ 202 else if (satData->system() == 'E' ) {227 else if (satData->system() == 'E' && _opt->useSystem('E')) { 203 228 if (satData->P1 != 0.0 && satData->P5 != 0.0 && 204 229 satData->L1 != 0.0 && satData->L5 != 0.0 ) {
Note:
See TracChangeset
for help on using the changeset viewer.