Changeset 2317 in ntrip
- Timestamp:
- Feb 20, 2010, 9:32:12 AM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2296 r2317 138 138 // --------------------- 139 139 if (obs->P1) { 140 satData->P1 = obs->P1 + (bb ? bb->p1 : 0.0);140 satData->P1 = obs->P1; 141 141 satData->codeTypeF1 = t_satData::P_CODE; 142 142 } 143 143 else if (obs->C1) { 144 satData->P1 = obs->C1 + (bb ? bb-> c1 : 0.0);144 satData->P1 = obs->C1 + (bb ? bb->p1c1 : 0.0); 145 145 satData->codeTypeF1 = t_satData::C_CODE; 146 146 } … … 151 151 152 152 if (obs->P2) { 153 satData->P2 = obs->P2 + (bb ? bb->p 2 : 0.0);153 satData->P2 = obs->P2 + (bb ? bb->p1p2 : 0.0); 154 154 satData->codeTypeF2 = t_satData::P_CODE; 155 155 } 156 156 else if (obs->C2) { 157 satData->P2 = obs->C2 + (bb ? bb->c2 : 0.0);157 satData->P2 = obs->C2; 158 158 satData->codeTypeF2 = t_satData::C_CODE; 159 159 } … … 332 332 } 333 333 } 334 else if ( messageType == BTYPE_GPS || 335 messageType == BTYPE_GLONASS ) { 334 else if ( messageType == BTYPE_GPS ) { 336 335 337 336 t_bias* bb = 0; … … 352 351 double bValue; 353 352 in >> bType >> bValue; 354 if (bType == 0) {355 bb-> c1 =bValue;353 if (bType == 0) { 354 bb->p1c1 = -bValue; 356 355 } 357 else if (bType >= 1 && bType <= 4) { 358 bb->p1 = bValue; 359 } 360 else if (bType == 5) { 361 bb->c2 = bValue; 362 } 363 else if (bType >= 6 && bType <= 13) { 364 bb->p2 = bValue; 356 else if (bType == 10) { 357 bb->p1p2 = -bValue; 365 358 } 366 359 } -
trunk/BNC/bncpppclient.h
r2296 r2317 100 100 public: 101 101 t_bias() { 102 c1 = 0.0; 103 p1 = 0.0; 104 c2 = 0.0; 105 p2 = 0.0; 102 p1c1 = 0.0; 103 p1p2 = 0.0; 106 104 } 107 105 bncTime tt; 108 double c1; 109 double p1; 110 double c2; 111 double p2; 106 double p1c1; 107 double p1p2; 112 108 }; 113 109
Note:
See TracChangeset
for help on using the changeset viewer.