Changeset 4389 in ntrip for trunk/BNC/src/RTCM3
- Timestamp:
- Jul 5, 2012, 6:45:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3Decoder.cpp
r4388 r4389 336 336 } 337 337 338 obs._dataflags = gnssData.dataflags[iSat]; 339 obs._dataflags2 = gnssData.dataflags2[iSat]; 340 338 341 // Loop over all data types 339 342 // ------------------------ 340 343 for (int iEntry = 0; iEntry < GNSSENTRY_NUMBER; ++iEntry) { 341 342 unsigned df = (1 << iEntry); 343 344 if (df & gnssData.dataflags[iSat]) { 345 346 // TODO: codetype[1] is e.g. 'W' or 'C' or 'P' 347 const char* codetype = gnssData.codetype[iSat][iEntry]; 348 if (codetype) { 349 // cout << prn.toAscii().data() << " " << codetype << endl; 350 } 351 352 if (iEntry == GNSSENTRY_C1DATA) { 353 obs.C1 = gnssData.measdata[iSat][iEntry]; 354 } 355 else if (iEntry == GNSSENTRY_C2DATA) { 356 obs.C2 = gnssData.measdata[iSat][iEntry]; 357 } 358 else if (iEntry == GNSSENTRY_P1DATA) { 359 obs.P1 = gnssData.measdata[iSat][iEntry]; 360 } 361 else if (iEntry == GNSSENTRY_P2DATA) { 362 obs.P2 = gnssData.measdata[iSat][iEntry]; 363 } 364 else if (iEntry == GNSSENTRY_L1CDATA) { 365 obs.L1C = gnssData.measdata[iSat][iEntry]; 366 } 367 else if (iEntry == GNSSENTRY_L1PDATA) { 368 obs.L1P = gnssData.measdata[iSat][iEntry]; 369 } 370 else if (iEntry == GNSSENTRY_L2CDATA) { 371 obs.L2C = gnssData.measdata[iSat][iEntry]; 372 } 373 else if (iEntry == GNSSENTRY_L2PDATA) { 374 obs.L2P = gnssData.measdata[iSat][iEntry]; 375 } 376 else if (iEntry == GNSSENTRY_D1CDATA) { 377 obs.D1C = gnssData.measdata[iSat][iEntry]; 378 } 379 else if (iEntry == GNSSENTRY_D1PDATA) { 380 obs.D1P = gnssData.measdata[iSat][iEntry]; 381 } 382 else if (iEntry == GNSSENTRY_S1CDATA) { 383 obs.S1C = gnssData.measdata[iSat][iEntry]; 384 } 385 else if (iEntry == GNSSENTRY_S1PDATA) { 386 obs.S1P = gnssData.measdata[iSat][iEntry]; 387 } 388 else if (iEntry == GNSSENTRY_D2CDATA) { 389 obs.D2C = gnssData.measdata[iSat][iEntry]; 390 } 391 else if (iEntry == GNSSENTRY_D2PDATA) { 392 obs.D2P = gnssData.measdata[iSat][iEntry]; 393 } 394 else if (iEntry == GNSSENTRY_S2CDATA) { 395 obs.S2C = gnssData.measdata[iSat][iEntry]; 396 } 397 else if (iEntry == GNSSENTRY_S2PDATA) { 398 obs.S2P = gnssData.measdata[iSat][iEntry]; 399 } 400 else if (iEntry == GNSSENTRY_C5DATA) { 401 obs.C5 = gnssData.measdata[iSat][iEntry]; 402 } 403 else if (iEntry == GNSSENTRY_L5DATA) { 404 obs.L5 = gnssData.measdata[iSat][iEntry]; 405 } 406 else if (iEntry == GNSSENTRY_D5DATA) { 407 obs.D5 = gnssData.measdata[iSat][iEntry]; 408 } 409 else if (iEntry == GNSSENTRY_S5DATA) { 410 obs.S5 = gnssData.measdata[iSat][iEntry]; 411 } 412 } 344 obs._measdata[iEntry] = gnssData.measdata[iSat][iEntry]; 345 obs._codetype[iEntry] = gnssData.codetype[iSat][iEntry]; 413 346 } 414 347 _obsList.push_back(obs);
Note:
See TracChangeset
for help on using the changeset viewer.