Changeset 10587 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp
- Timestamp:
- Dec 10, 2024, 3:57:21 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcedit.cpp
r10577 r10587 586 586 bool haveGPS = false; 587 587 bool haveGlonass = false; 588 QMap<t_eph::e_ type, bool> haveGnss;588 QMap<t_eph::e_system, bool> haveGnss; 589 589 for (int ii = 0; ii < _ephs.size(); ii++) { 590 590 const t_eph* eph = _ephs[ii]; 591 switch (eph-> type()) {591 switch (eph->system()) { 592 592 case t_eph::GPS: 593 593 haveGPS = true; … … 680 680 bncTime begTime = _begTime; 681 681 bncTime endTime = _endTime; 682 if (eph-> type() == t_eph::BDS) {682 if (eph->system() == t_eph::BDS) { 683 683 begTime += 14; 684 684 endTime += 14; … … 695 695 696 696 if (outNavFile.version() < 3.0) { 697 if (outNavFile.glonass() && eph-> type() != t_eph::GLONASS) {697 if (outNavFile.glonass() && eph->system() != t_eph::GLONASS) { 698 698 continue; 699 699 } 700 if (!outNavFile.glonass() && eph-> type() != t_eph::GPS) {700 if (!outNavFile.glonass() && eph->system() != t_eph::GPS) { 701 701 continue; 702 702 } 703 703 } 704 705 if (outNavFile.version() < 4.0) {706 if (eph->ephType() == t_eph::CNAV ||707 eph->ephType() == t_eph::CNV1 ||708 eph->ephType() == t_eph::CNV2 ||709 eph->ephType() == t_eph::CNV3) {710 continue;711 }712 }713 714 if (outNavFile.version() >= 4.0 &&715 eph->ephType() == t_eph::undefined) { // input files < version 4.0716 continue;717 }718 719 704 outNavFile.writeEph(eph); 720 705 } … … 739 724 740 725 if (isNew) { 741 if (eph-> type() == t_eph::GPS) {726 if (eph->system() == t_eph::GPS) { 742 727 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 743 728 } 744 else if (eph-> type() == t_eph::GLONASS) {729 else if (eph->system() == t_eph::GLONASS) { 745 730 ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 746 731 } 747 else if (eph-> type() == t_eph::Galileo) {732 else if (eph->system() == t_eph::Galileo) { 748 733 ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 749 734 } 750 else if (eph-> type() == t_eph::QZSS) {735 else if (eph->system() == t_eph::QZSS) { 751 736 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 752 737 } 753 else if (eph-> type() == t_eph::SBAS) {738 else if (eph->system() == t_eph::SBAS) { 754 739 ephs.append(new t_ephSBAS(*dynamic_cast<t_ephSBAS*>(eph))); 755 740 } 756 else if (eph-> type() == t_eph::BDS) {741 else if (eph->system() == t_eph::BDS) { 757 742 ephs.append(new t_ephBDS(*dynamic_cast<t_ephBDS*>(eph))); 758 743 } 759 else if (eph-> type() == t_eph::IRNSS) {744 else if (eph->system() == t_eph::IRNSS) { 760 745 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 761 746 }
Note:
See TracChangeset
for help on using the changeset viewer.