Changeset 8649 in ntrip
- Timestamp:
- Mar 29, 2019, 1:19:51 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8648 r8649 420 420 eph->checkState() != t_eph::unhealthy && 421 421 eph->checkState() != t_eph::outdated) { 422 QMap<QString, double> codeBiases; 423 QList<phaseBiasSignal> phaseBiasList; 424 phaseBiasesSat pbSat; 425 426 while (true) { 427 QString key; 428 int numVal = 0; 429 in >> key; 430 if (in.status() != QTextStream::Ok) { 431 break; 432 } 433 if (key == "APC") { 434 in >> numVal; 435 rtnAPC.ReSize(3); rtnAPC = 0.0; 436 for (int ii = 0; ii < numVal; ii++) { 437 in >> rtnAPC[ii]; 438 } 439 } 440 else if (key == "Ura") { 441 in >> numVal; 442 if (numVal == 1) 443 in >> rtnUra; 444 } 445 else if (key == "Clk") { 446 in >> numVal; 447 rtnClk.ReSize(3); rtnClk = 0.0; 448 for (int ii = 0; ii < numVal; ii++) { 449 in >> rtnClk[ii]; 450 } 451 } 452 else if (key == "ClkSig") { 453 in >> numVal; 454 rtnClkSig.ReSize(3); rtnClkSig = 0.0; 455 for (int ii = 0; ii < numVal; ii++) { 456 in >> rtnClkSig[ii]; 457 } 458 } 459 else if (key == "Vel") { 460 in >> numVal; 461 rtnVel.ReSize(3); rtnVel = 0.0; 462 for (int ii = 0; ii < numVal; ii++) { 463 in >> rtnVel[ii]; 464 } 465 } 466 else if (key == "CoM") { 467 in >> numVal; 468 rtnCoM.ReSize(3); rtnCoM = 0.0; 469 for (int ii = 0; ii < numVal; ii++) { 470 in >> rtnCoM[ii]; 471 } 472 } 473 else if (key == "CodeBias") { 474 in >> numVal; 475 for (int ii = 0; ii < numVal; ii++) { 476 QString type; 477 double value; 478 in >> type >> value; 479 codeBiases[type] = value; 480 } 481 } 482 else if (key == "YawAngle") { 483 in >> numVal >> pbSat.yawAngle; 484 if (pbSat.yawAngle < 0.0) { 485 pbSat.yawAngle += (2*M_PI); 486 } 487 else if (pbSat.yawAngle > 2*M_PI) { 488 pbSat.yawAngle -= (2*M_PI); 489 } 490 } 491 else if (key == "YawRate") { 492 in >> numVal >> pbSat.yawRate; 493 } 494 else if (key == "PhaseBias") { 495 in >> numVal; 496 for (int ii = 0; ii < numVal; ii++) { 497 phaseBiasSignal pb; 498 in >> pb.type >> pb.bias >> pb.integerIndicator 499 >> pb.wlIndicator >> pb.discontinuityCounter; 500 phaseBiasList.append(pb); 501 } 502 } 503 else { 504 emit(newMessage(" RTNET format error: " 505 + lines[ii].toAscii(), false)); 506 } 507 } 422 508 423 509 struct ClockOrbit::SatData* sd = 0; 424 510 if (prn.system() == 'G') { 425 511 sd = co.Sat + co.NumberOfSat[CLOCKORBIT_SATGPS]; 426 512 ++co.NumberOfSat[CLOCKORBIT_SATGPS]; … … 460 546 sd->ID = prnStr.mid(1).toInt(); // to prevent G00, R00 entries 461 547 sd->IOD = eph->IOD(); 462 }463 }464 465 QMap<QString, double> codeBiases;466 QList<phaseBiasSignal> phaseBiasList;467 phaseBiasesSat pbSat;468 469 while (true) {470 QString key;471 int numVal = 0;472 in >> key;473 if (in.status() != QTextStream::Ok) {474 break;475 }476 if (key == "APC") {477 in >> numVal;478 rtnAPC.ReSize(3); rtnAPC = 0.0;479 for (int ii = 0; ii < numVal; ii++) {480 in >> rtnAPC[ii];481 }482 }483 else if (key == "Ura") {484 in >> numVal;485 if (numVal == 1)486 in >> rtnUra;487 }488 else if (key == "Clk") {489 in >> numVal;490 rtnClk.ReSize(3); rtnClk = 0.0;491 for (int ii = 0; ii < numVal; ii++) {492 in >> rtnClk[ii];493 }494 }495 else if (key == "ClkSig") {496 in >> numVal;497 rtnClkSig.ReSize(3); rtnClkSig = 0.0;498 for (int ii = 0; ii < numVal; ii++) {499 in >> rtnClkSig[ii];500 }501 }502 else if (key == "Vel") {503 in >> numVal;504 rtnVel.ReSize(3); rtnVel = 0.0;505 for (int ii = 0; ii < numVal; ii++) {506 in >> rtnVel[ii];507 }508 }509 else if (key == "CoM") {510 in >> numVal;511 rtnCoM.ReSize(3); rtnCoM = 0.0;512 for (int ii = 0; ii < numVal; ii++) {513 in >> rtnCoM[ii];514 }515 }516 else if (key == "CodeBias") {517 in >> numVal;518 for (int ii = 0; ii < numVal; ii++) {519 QString type;520 double value;521 in >> type >> value;522 codeBiases[type] = value;523 }524 }525 else if (key == "YawAngle") {526 in >> numVal >> pbSat.yawAngle;527 if (pbSat.yawAngle < 0.0) {528 pbSat.yawAngle += (2*M_PI);529 }530 else if (pbSat.yawAngle > 2*M_PI) {531 pbSat.yawAngle -= (2*M_PI);532 }533 }534 else if (key == "YawRate") {535 in >> numVal >> pbSat.yawRate;536 }537 else if (key == "PhaseBias") {538 in >> numVal;539 for (int ii = 0; ii < numVal; ii++) {540 phaseBiasSignal pb;541 in >> pb.type >> pb.bias >> pb.integerIndicator542 >> pb.wlIndicator >> pb.discontinuityCounter;543 phaseBiasList.append(pb);544 }545 }546 else {547 emit(newMessage(" RTNET format error: "548 + lines[ii].toAscii(), false));549 548 } 550 549 }
Note:
See TracChangeset
for help on using the changeset viewer.