Changeset 6472 in ntrip
- Timestamp:
- Dec 28, 2014, 3:19:27 PM (10 years ago)
- Location:
- trunk/BNC/src/RTCM3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp
r6471 r6472 210 210 void RTCM3coDecoder::sendResults() { 211 211 212 QList<t_orbCorr>& orbCorrections = _orbCorrections[_lastTime]; 213 QList<t_clkCorr>& clkCorrections = _clkCorrections[_lastTime]; 212 QList<t_orbCorr>& orbCorrections = _orbCorrections[_lastTime]; 213 QList<t_clkCorr>& clkCorrections = _clkCorrections[_lastTime]; 214 QList<t_satCodeBias>& codeBiases = _codeBiases[_lastTime]; 214 215 215 216 // Orbit and clock corrections of all satellites … … 296 297 // Code Biases 297 298 // ----------- 298 QList<t_satCodeBias> satCodeBiases;299 299 for (unsigned ii = 0; ii < CLOCKORBIT_NUMGPS + _codeBias.NumberOfSat[CLOCKORBIT_SATGLONASS]; ii++) { 300 300 char sysCh = ' '; … … 310 310 t_satCodeBias satCodeBias; 311 311 satCodeBias._prn.set(sysCh, _codeBias.Sat[ii].ID); 312 satCodeBias._time = _lastTime; 312 satCodeBias._staID = _staID.toAscii().data(); 313 satCodeBias._time = _lastTime; 313 314 for (unsigned jj = 0; jj < _codeBias.Sat[ii].NumberOfCodeBiases; jj++) { 314 } 315 const CodeBias::BiasSat::CodeBiasEntry& biasEntry = _codeBias.Sat[ii].Biases[jj]; 316 t_frqCodeBias frqCodeBias; 317 frqCodeBias._rnxType2ch = codeTypeToRnxType(sysCh, biasEntry.Type); 318 frqCodeBias._value = biasEntry.Bias; 319 satCodeBias._bias.push_back(frqCodeBias); 320 } 321 codeBiases.push_back(satCodeBias); 315 322 } 316 323 … … 369 376 } 370 377 371 372 378 // 373 379 //////////////////////////////////////////////////////////////////////////// … … 428 434 } 429 435 } 436 437 // 438 //////////////////////////////////////////////////////////////////////////// 439 string RTCM3coDecoder::codeTypeToRnxType(char system, CodeType type) const { 440 if (system == 'G') { 441 switch (type) { 442 case CODETYPEGPS_L1_CA: return ""; 443 case CODETYPEGPS_L1_P: return ""; 444 case CODETYPEGPS_L1_Z: return ""; 445 case CODETYPEGPS_L2_CA: return ""; 446 case CODETYPEGPS_SEMI_CODELESS: return ""; 447 case CODETYPEGPS_L2_CM: return ""; 448 case CODETYPEGPS_L2_CL: return ""; 449 case CODETYPEGPS_L2_CML: return ""; 450 case CODETYPEGPS_L2_P: return ""; 451 case CODETYPEGPS_L2_Z: return ""; 452 case CODETYPEGPS_L5_I: return ""; 453 case CODETYPEGPS_L5_Q: return ""; 454 default: return ""; 455 } 456 } 457 else if (system == 'R') { 458 switch (type) { 459 case CODETYPEGLONASS_L1_CA: return ""; 460 case CODETYPEGLONASS_L1_P: return ""; 461 case CODETYPEGLONASS_L2_CA: return ""; 462 case CODETYPEGLONASS_L2_P: return ""; 463 default: return ""; 464 } 465 } 466 else if (system == 'E') { 467 switch (type) { 468 case CODETYPEGALILEO_E1_A: return ""; 469 case CODETYPEGALILEO_E1_B: return ""; 470 case CODETYPEGALILEO_E1_C: return ""; 471 case CODETYPEGALILEO_E5A_I: return ""; 472 case CODETYPEGALILEO_E5A_Q: return ""; 473 case CODETYPEGALILEO_E5B_I: return ""; 474 case CODETYPEGALILEO_E5B_Q: return ""; 475 case CODETYPEGALILEO_E5_I: return ""; 476 case CODETYPEGALILEO_E5_Q: return ""; 477 case CODETYPEGALILEO_E6_A: return ""; 478 case CODETYPEGALILEO_E6_B: return ""; 479 case CODETYPEGALILEO_E6_C: return ""; 480 default: return ""; 481 } 482 } 483 else if (system == 'J') { 484 switch (type) { 485 case CODETYPEQZSS_L1_CA: return ""; 486 case CODETYPEQZSS_L1C_D: return ""; 487 case CODETYPEQZSS_L1C_P: return ""; 488 case CODETYPEQZSS_L2_CM: return ""; 489 case CODETYPEQZSS_L2_CL: return ""; 490 case CODETYPEQZSS_L2_CML: return ""; 491 case CODETYPEQZSS_L5_I: return ""; 492 case CODETYPEQZSS_L5_Q: return ""; 493 case CODETYPEQZSS_L5_IQ: return ""; 494 case CODETYPEQZSS_LEX_S: return ""; 495 case CODETYPEQZSS_LEX_L: return ""; 496 case CODETYPEQZSS_LEX_SL: return ""; 497 case CODETYPEQZSS_L1C_DP: return ""; 498 default: return ""; 499 } 500 } 501 else if (system == 'S') { 502 switch (type) { 503 case CODETYPE_SBAS_L1_CA: return ""; 504 case CODETYPE_SBAS_L5_I: return ""; 505 case CODETYPE_SBAS_L5_Q: return ""; 506 case CODETYPE_SBAS_L5_IQ: return ""; 507 default: return ""; 508 } 509 } 510 else if (system == 'C') { 511 switch (type) { 512 case CODETYPE_BDS_B1_I: return ""; 513 case CODETYPE_BDS_B1_Q: return ""; 514 case CODETYPE_BDS_B1_IQ: return ""; 515 case CODETYPE_BDS_B3_I: return ""; 516 case CODETYPE_BDS_B3_Q: return ""; 517 case CODETYPE_BDS_B3_IQ: return ""; 518 case CODETYPE_BDS_B2_I: return ""; 519 case CODETYPE_BDS_B2_Q: return ""; 520 case CODETYPE_BDS_B2_IQ: return ""; 521 default: return ""; 522 } 523 } 524 return ""; 525 }; -
trunk/BNC/src/RTCM3/RTCM3coDecoder.h
r6471 r6472 55 55 void reopen(); 56 56 void checkProviderID(); 57 std::ofstream* _out; 58 QString _staID; 59 QString _fileNameSkl; 60 QString _fileName; 61 QByteArray _buffer; 62 ClockOrbit _clkOrb; 63 CodeBias _codeBias; 64 PhaseBias _phaseBias; 65 VTEC _vTEC; 66 int _providerID[3]; 67 bncTime _lastTime; 57 std::string codeTypeToRnxType(char system, CodeType type) const; 58 59 std::ofstream* _out; 60 QString _staID; 61 QString _fileNameSkl; 62 QString _fileName; 63 QByteArray _buffer; 64 ClockOrbit _clkOrb; 65 CodeBias _codeBias; 66 PhaseBias _phaseBias; 67 VTEC _vTEC; 68 int _providerID[3]; 69 bncTime _lastTime; 68 70 QMap<t_prn, unsigned short> _IODs; 69 71 QMap<bncTime, QList<t_orbCorr> > _orbCorrections;
Note:
See TracChangeset
for help on using the changeset viewer.