Changeset 8648 in ntrip for branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
- Timestamp:
- Mar 29, 2019, 11:04:24 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/upload/bncrtnetuploadcaster.cpp
r8628 r8648 418 418 if (eph && 419 419 eph->checkState() != t_eph::bad && 420 eph->checkState() != t_eph::unhealthy ) { 420 eph->checkState() != t_eph::unhealthy && 421 eph->checkState() != t_eph::outdated) { 422 423 struct ClockOrbit::SatData* sd = 0; 424 if (prn.system() == 'G') { 425 sd = co.Sat + co.NumberOfSat[CLOCKORBIT_SATGPS]; 426 ++co.NumberOfSat[CLOCKORBIT_SATGPS]; 427 } 428 else if (prn.system() == 'R') { 429 sd = co.Sat + CLOCKORBIT_NUMGPS + co.NumberOfSat[CLOCKORBIT_SATGLONASS]; 430 ++co.NumberOfSat[CLOCKORBIT_SATGLONASS]; 431 } 432 else if (prn.system() == 'E') { 433 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 434 + co.NumberOfSat[CLOCKORBIT_SATGALILEO]; 435 ++co.NumberOfSat[CLOCKORBIT_SATGALILEO]; 436 } 437 else if (prn.system() == 'J') { 438 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 439 + CLOCKORBIT_NUMGALILEO + co.NumberOfSat[CLOCKORBIT_SATQZSS]; 440 ++co.NumberOfSat[CLOCKORBIT_SATQZSS]; 441 } 442 else if (prn.system() == 'S') { 443 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 444 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS 445 + co.NumberOfSat[CLOCKORBIT_SATSBAS]; 446 ++co.NumberOfSat[CLOCKORBIT_SATSBAS]; 447 } 448 else if (prn.system() == 'C') { 449 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS 450 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS 451 + co.NumberOfSat[CLOCKORBIT_SATBDS]; 452 ++co.NumberOfSat[CLOCKORBIT_SATBDS]; 453 } 454 if (sd) { 455 QString outLine; 456 t_irc irc = processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC, 457 rtnUra, rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine); 458 if (irc != success) { 459 // very few cases: check states bad and unhealthy are excluded earlier 460 sd->ID = prnStr.mid(1).toInt(); // to prevent G00, R00 entries 461 sd->IOD = eph->IOD(); 462 } 463 } 464 421 465 QMap<QString, double> codeBiases; 422 466 QList<phaseBiasSignal> phaseBiasList; … … 503 547 emit(newMessage(" RTNET format error: " 504 548 + lines[ii].toAscii(), false)); 505 }506 }507 508 struct ClockOrbit::SatData* sd = 0;509 if (prn.system() == 'G') {510 sd = co.Sat + co.NumberOfSat[CLOCKORBIT_SATGPS];511 ++co.NumberOfSat[CLOCKORBIT_SATGPS];512 }513 else if (prn.system() == 'R') {514 sd = co.Sat + CLOCKORBIT_NUMGPS + co.NumberOfSat[CLOCKORBIT_SATGLONASS];515 ++co.NumberOfSat[CLOCKORBIT_SATGLONASS];516 }517 else if (prn.system() == 'E') {518 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS519 + co.NumberOfSat[CLOCKORBIT_SATGALILEO];520 ++co.NumberOfSat[CLOCKORBIT_SATGALILEO];521 }522 else if (prn.system() == 'J') {523 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS524 + CLOCKORBIT_NUMGALILEO + co.NumberOfSat[CLOCKORBIT_SATQZSS];525 ++co.NumberOfSat[CLOCKORBIT_SATQZSS];526 }527 else if (prn.system() == 'S') {528 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS529 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS530 + co.NumberOfSat[CLOCKORBIT_SATSBAS];531 ++co.NumberOfSat[CLOCKORBIT_SATSBAS];532 }533 else if (prn.system() == 'C') {534 sd = co.Sat + CLOCKORBIT_NUMGPS + CLOCKORBIT_NUMGLONASS535 + CLOCKORBIT_NUMGALILEO + CLOCKORBIT_NUMQZSS + CLOCKORBIT_NUMSBAS536 + co.NumberOfSat[CLOCKORBIT_SATBDS];537 ++co.NumberOfSat[CLOCKORBIT_SATBDS];538 }539 if (sd) {540 QString outLine;541 t_irc irc = processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prnStr, rtnAPC,542 rtnUra, rtnClk, rtnVel, rtnCoM, rtnClkSig, sd, outLine);543 if (irc != success) {544 // very few cases: check states bad and unhealthy are excluded earlier545 sd->ID = prnStr.mid(1).toInt(); // to prevent G00, R00 entries546 sd->IOD = eph->IOD();547 549 } 548 550 }
Note:
See TracChangeset
for help on using the changeset viewer.