Changeset 2711 in ntrip for trunk/BNC/bncpppclient.cpp
- Timestamp:
- Nov 18, 2010, 1:38:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2710 r2711 119 119 // 120 120 //////////////////////////////////////////////////////////////////////////// 121 void bncPPPclient::putNewObs( t_obs*obs) {121 void bncPPPclient::putNewObs(const t_obs& obs) { 122 122 QMutexLocker locker(&_mutex); 123 123 124 if (obs ->satSys != 'G' && !_useGlonass) {124 if (obs.satSys != 'G' && !_useGlonass) { 125 125 return; 126 126 } … … 130 130 // Satellite Number 131 131 // ---------------- 132 if (obs ->satSys == 'G') {133 QString prn = QString("G%1").arg(obs ->satNum, 2, 10, QChar('0'));132 if (obs.satSys == 'G') { 133 QString prn = QString("G%1").arg(obs.satNum, 2, 10, QChar('0')); 134 134 satData->prn = prn; 135 135 } 136 else if (obs ->satSys == 'R') {137 QString prn = QString("R%1").arg(obs ->satNum, 2, 10, QChar('0'));136 else if (obs.satSys == 'R') { 137 QString prn = QString("R%1").arg(obs.satNum, 2, 10, QChar('0')); 138 138 satData->prn = prn; 139 139 } … … 142 142 // ----------- 143 143 slipInfo& sInfo = _slips[satData->prn]; 144 if ( sInfo.slipCntL1 == obs ->slip_cnt_L1 &&145 sInfo.slipCntL2 == obs ->slip_cnt_L2 ) {144 if ( sInfo.slipCntL1 == obs.slip_cnt_L1 && 145 sInfo.slipCntL2 == obs.slip_cnt_L2 ) { 146 146 satData->slipFlag = false; 147 147 } … … 149 149 satData->slipFlag = true; 150 150 } 151 sInfo.slipCntL1 = obs ->slip_cnt_L1;152 sInfo.slipCntL2 = obs ->slip_cnt_L2;151 sInfo.slipCntL1 = obs.slip_cnt_L1; 152 sInfo.slipCntL2 = obs.slip_cnt_L2; 153 153 154 154 // Handle Code Biases … … 161 161 // Set Code Observations 162 162 // --------------------- 163 if (obs ->P1) {164 satData->P1 = obs ->P1 + (bb ? bb->p1 : 0.0);163 if (obs.P1) { 164 satData->P1 = obs.P1 + (bb ? bb->p1 : 0.0); 165 165 satData->codeTypeF1 = t_satData::P_CODE; 166 166 } 167 else if (obs ->C1) {168 satData->P1 = obs ->C1 + (bb ? bb->c1 : 0.0);167 else if (obs.C1) { 168 satData->P1 = obs.C1 + (bb ? bb->c1 : 0.0); 169 169 satData->codeTypeF1 = t_satData::C_CODE; 170 170 } … … 174 174 } 175 175 176 if (obs ->P2) {177 satData->P2 = obs ->P2 + (bb ? bb->p2 : 0.0);176 if (obs.P2) { 177 satData->P2 = obs.P2 + (bb ? bb->p2 : 0.0); 178 178 satData->codeTypeF2 = t_satData::P_CODE; 179 179 } 180 else if (obs ->C2) {181 satData->P2 = obs ->C2;180 else if (obs.C2) { 181 satData->P2 = obs.C2; 182 182 satData->codeTypeF2 = t_satData::C_CODE; 183 183 } … … 190 190 double f2 = t_CST::freq2; 191 191 192 if (obs ->satSys == 'R') {193 f1 = 1602000000.0 + 562500.0 * obs ->slotNum;194 f2 = 1246000000.0 + 437500.0 * obs ->slotNum;192 if (obs.satSys == 'R') { 193 f1 = 1602000000.0 + 562500.0 * obs.slotNum; 194 f2 = 1246000000.0 + 437500.0 * obs.slotNum; 195 195 } 196 196 … … 204 204 // Set Phase Observations 205 205 // ---------------------- 206 if (obs ->L1() && obs->L2()) {207 satData->L1 = obs ->L1() * t_CST::c / f1;208 satData->L2 = obs ->L2() * t_CST::c / f2;206 if (obs.L1() && obs.L2()) { 207 satData->L1 = obs.L1() * t_CST::c / f1; 208 satData->L2 = obs.L2() * t_CST::c / f2; 209 209 } 210 210 else { … … 220 220 // Add new Satellite to the epoch 221 221 // ------------------------------ 222 bncTime tt(obs ->GPSWeek, obs->GPSWeeks);222 bncTime tt(obs.GPSWeek, obs.GPSWeeks); 223 223 224 224 if (!_epoData) { … … 233 233 } 234 234 235 if (obs ->satSys == 'G') {235 if (obs.satSys == 'G') { 236 236 _epoData->satDataGPS[satData->prn] = satData; 237 237 } 238 else if (obs ->satSys == 'R') {238 else if (obs.satSys == 'R') { 239 239 _epoData->satDataGlo[satData->prn] = satData; 240 240 }
Note:
See TracChangeset
for help on using the changeset viewer.