Changeset 10603 in ntrip for trunk/BNC/src
- Timestamp:
- Feb 4, 2025, 4:46:08 PM (3 days ago)
- Location:
- trunk/BNC/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppFilter.cpp
r10602 r10603 266 266 } 267 267 if (par) { 268 if (par->ambResetCandidate()) { 269 resetAmb(obs->prn(), obsVector, maxOutlierLC, &QSav, &xSav); 270 } else { 271 par->setAmbResetCandidate(); 272 obs->setOutlier(); 273 } 268 resetAmb(obs->prn(), obsVector, maxOutlierLC, &QSav, &xSav); 274 269 } 275 270 else { -
trunk/BNC/src/ephemeris.cpp
r10599 r10603 106 106 return success; 107 107 } 108 109 // 110 ////////////////////////////////////////////////////////////////////////////// 111 void t_eph::setType(QString typeStr) { 112 113 if (typeStr == "LNAV") { 114 _type = t_eph::LNAV; 115 } else if (typeStr == "FDMA") { 116 _type = t_eph::FDMA; 117 } else if (typeStr == "FNAV") { 118 _type = t_eph::FNAV; 119 } else if (typeStr == "INAV") { 120 _type = t_eph::INAV; 121 } else if (typeStr == "D1") { 122 _type = t_eph::D1; 123 } else if (typeStr == "D2") { 124 _type = t_eph::D2; 125 } else if (typeStr == "SBAS") { 126 _type = t_eph::SBASL1; 127 } else if (typeStr == "CNAV") { 128 _type = t_eph::CNAV; 129 } else if (typeStr == "CNV1") { 130 _type = t_eph::CNV1; 131 } else if (typeStr == "CNV2") { 132 _type = t_eph::CNV2; 133 } else if (typeStr == "CNV3") { 134 _type = t_eph::CNV3; 135 } else if (typeStr == "L1NV") { 136 _type = t_eph::L1NV; 137 } else if (typeStr == "L1OC") { 138 _type = t_eph::L1OC; 139 } else if (typeStr == "L3OC") { 140 _type = t_eph::L3OC; 141 } else { 142 _type = t_eph::undefined; 143 } 144 145 } 146 108 147 109 148 // … … 226 265 // Constructor 227 266 ////////////////////////////////////////////////////////////////////////////// 228 t_ephGPS::t_ephGPS(double rnxVersion, const QStringList &lines) { 229 267 t_ephGPS::t_ephGPS(double rnxVersion, const QStringList &lines, QString typeStr) { 268 269 setType(typeStr); 270 230 271 int nLines = 8; // LNAV 231 232 272 // Source RINEX version < 4 233 273 if (type() == t_eph::undefined) { … … 1009 1049 // Constructor 1010 1050 ////////////////////////////////////////////////////////////////////////////// 1011 t_ephGlo::t_ephGlo(double rnxVersion, const QStringList &lines) { 1051 t_ephGlo::t_ephGlo(double rnxVersion, const QStringList &lines, const QString typeStr) { 1052 1053 setType(typeStr); 1012 1054 1013 1055 int nLines = 4; … … 1651 1693 // Constructor 1652 1694 ////////////////////////////////////////////////////////////////////////////// 1653 t_ephGal::t_ephGal(double rnxVersion, const QStringList &lines) { 1695 t_ephGal::t_ephGal(double rnxVersion, const QStringList &lines, const QString typeStr) { 1696 1697 setType(typeStr); 1654 1698 1655 1699 const int nLines = 8; … … 2105 2149 // Constructor 2106 2150 ////////////////////////////////////////////////////////////////////////////// 2107 t_ephSBAS::t_ephSBAS(double rnxVersion, const QStringList &lines) { 2151 t_ephSBAS::t_ephSBAS(double rnxVersion, const QStringList &lines, const QString typeStr) { 2152 2153 setType(typeStr); 2108 2154 2109 2155 const int nLines = 4; … … 2347 2393 // Constructor 2348 2394 ////////////////////////////////////////////////////////////////////////////// 2349 t_ephBDS::t_ephBDS(double rnxVersion, const QStringList &lines) { 2395 t_ephBDS::t_ephBDS(double rnxVersion, const QStringList &lines, const QString typeStr) { 2396 2397 setType(typeStr); 2350 2398 2351 2399 int nLines = 8; -
trunk/BNC/src/ephemeris.h
r10599 r10603 43 43 } 44 44 e_type type() const {return _type;} 45 void setType(QString typeStr); 45 46 t_prn prn() const {return _prn;} 46 47 t_irc getCrd(const bncTime& tt, ColumnVector& xc, ColumnVector& vv, bool useCorr) const; … … 127 128 _receptStaID = ""; 128 129 } 129 t_ephGPS(double rnxVersion, const QStringList& lines );130 t_ephGPS(double rnxVersion, const QStringList& lines, const QString typeStr); 130 131 virtual ~t_ephGPS() {} 131 132 … … 282 283 283 284 } 284 t_ephGlo(double rnxVersion, const QStringList& lines );285 t_ephGlo(double rnxVersion, const QStringList& lines, const QString typeStr); 285 286 virtual ~t_ephGlo() {} 286 287 … … 411 412 _receptStaID = ""; 412 413 }; 413 t_ephGal(double rnxVersion, const QStringList& lines );414 t_ephGal(double rnxVersion, const QStringList& lines, const QString typeStr); 414 415 virtual ~t_ephGal() {} 415 416 … … 487 488 _receptStaID = ""; 488 489 } 489 t_ephSBAS(double rnxVersion, const QStringList& lines );490 t_ephSBAS(double rnxVersion, const QStringList& lines, const QString typeStr); 490 491 virtual ~t_ephSBAS() {} 491 492 … … 573 574 _receptStaID = ""; 574 575 } 575 t_ephBDS(double rnxVersion, const QStringList& lines );576 t_ephBDS(double rnxVersion, const QStringList& lines, const QString typeStr); 576 577 virtual ~t_ephBDS() {} 577 578 -
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.