Changeset 10603 in ntrip for trunk/BNC/src/rinex
- Timestamp:
- Feb 4, 2025, 4:46:08 PM (8 days ago)
- Location:
- trunk/BNC/src/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcedit.cpp
r10587 r10603 724 724 725 725 if (isNew) { 726 if (eph->system() == t_eph::GPS) { 726 if (eph->system() == t_eph::GPS && 727 eph->type() == t_eph::LNAV) { 727 728 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 728 729 } 729 else if (eph->system() == t_eph::GLONASS) { 730 else if (eph->system() == t_eph::GLONASS && 731 eph->type() == t_eph::FDMA_M) { 730 732 ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph))); 731 733 } 732 else if (eph->system() == t_eph::Galileo) { 734 else if (eph->system() == t_eph::Galileo && 735 eph->type() == t_eph::INAV) { 733 736 ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph))); 734 737 } 735 else if (eph->system() == t_eph::QZSS) { 738 else if (eph->system() == t_eph::QZSS && 739 eph->type() == t_eph::LNAV) { 736 740 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 737 741 } 738 else if (eph->system() == t_eph::SBAS) { 742 else if (eph->system() == t_eph::SBAS && 743 eph->type() == t_eph::SBASL1) { 739 744 ephs.append(new t_ephSBAS(*dynamic_cast<t_ephSBAS*>(eph))); 740 745 } 741 else if (eph->system() == t_eph::BDS) { 746 else if (eph->system() == t_eph::BDS && 747 (eph->type() == t_eph::D1 || 748 eph->type() == t_eph::D2)) { 742 749 ephs.append(new t_ephBDS(*dynamic_cast<t_ephBDS*>(eph))); 743 750 } 744 else if (eph->system() == t_eph::IRNSS) { 751 else if (eph->system() == t_eph::IRNSS && 752 eph->type() == t_eph::LNAV) { 745 753 ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph))); 746 754 } -
trunk/BNC/src/rinex/rnxnavfile.cpp
r10599 r10603 149 149 //////////////////////////////////////////////////////////////////////////// 150 150 void t_rnxNavFile::read(QTextStream* stream) { 151 QString navType; 152 QString prn; 151 153 152 154 while (stream->status() == QTextStream::Ok && !stream->atEnd()) { 153 155 char sys; 154 156 QString line = stream->readLine(); 155 157 if (line.isEmpty()) { 156 158 continue; 157 159 } 158 QString navType; 160 159 161 QStringList hlp = line.split(QRegExp("\\s+"), Qt::SkipEmptyParts); 160 QString prn;161 char sys;162 162 QString firstStr = hlp.at(0); 163 163 … … 210 210 } 211 211 if (lines2skip) { 212 for (int ii = 1; ii <=lines2skip; ii++) {212 for (int ii = 0; ii < lines2skip; ii++) { 213 213 stream->readLine(); 214 214 } … … 240 240 lines << stream->readLine(); 241 241 } 242 eph = new t_ephGPS(version(), lines );242 eph = new t_ephGPS(version(), lines, navType); 243 243 } 244 244 else if (sys == 'R') { … … 250 250 lines << stream->readLine(); 251 251 } 252 eph = new t_ephGlo(version(), lines );252 eph = new t_ephGlo(version(), lines, navType); 253 253 } 254 254 else if (sys == 'E') { … … 256 256 lines << stream->readLine(); 257 257 } 258 eph = new t_ephGal(version(), lines );258 eph = new t_ephGal(version(), lines, navType); 259 259 } 260 260 else if (sys == 'J') { … … 269 269 lines << stream->readLine(); 270 270 } 271 eph = new t_ephGPS(version(), lines );271 eph = new t_ephGPS(version(), lines, navType); 272 272 } 273 273 else if (sys== 'S') { … … 275 275 lines << stream->readLine(); 276 276 } 277 eph = new t_ephSBAS(version(), lines );277 eph = new t_ephSBAS(version(), lines, navType); 278 278 } 279 279 else if (sys == 'C') { … … 289 289 lines << stream->readLine(); 290 290 } 291 eph = new t_ephBDS(version(), lines );291 eph = new t_ephBDS(version(), lines, navType); 292 292 } 293 293 else if (sys == 'I') { … … 299 299 lines << stream->readLine(); 300 300 } 301 eph = new t_ephGPS(version(), lines );301 eph = new t_ephGPS(version(), lines, navType); 302 302 } 303 303
Note:
See TracChangeset
for help on using the changeset viewer.