Changeset 8286 in ntrip
- Timestamp:
- Feb 23, 2018, 10:10:12 AM (7 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/bnccore.cpp
r8216 r8286 391 391 line.sprintf( 392 392 "%9.2f%11sN: GNSS NAV DATA M: Mixed%12sRINEX VERSION / TYPE\n", 393 t_rnxNavFile::defaultRnxNavVersion3, "", "");393 defaultRnxNavVersion3, "", ""); 394 394 *_ephStreamGPS << line; 395 395 … … 404 404 *_ephStreamGPS << it.next().trimmed().left(60).leftJustified(60) << "COMMENT\n"; 405 405 } 406 406 407 407 line.sprintf("%60sEND OF HEADER\n", ""); 408 408 *_ephStreamGPS << line; … … 418 418 QString line; 419 419 line.sprintf("%9.2f%11sN: GPS NAV DATA%25sRINEX VERSION / TYPE\n", 420 t_rnxNavFile::defaultRnxNavVersion2, "", "");420 defaultRnxNavVersion2, "", ""); 421 421 *_ephStreamGPS << line; 422 422 … … 431 431 *_ephStreamGPS << it.next().trimmed().left(60).leftJustified(60) << "COMMENT\n"; 432 432 } 433 433 434 434 line.sprintf("%60sEND OF HEADER\n", ""); 435 435 *_ephStreamGPS << line; … … 440 440 QString line; 441 441 line.sprintf("%9.2f%11sG: GLONASS NAV DATA%21sRINEX VERSION / TYPE\n", 442 t_rnxNavFile::defaultRnxNavVersion2, "", "");442 defaultRnxNavVersion2, "", ""); 443 443 *_ephStreamGlonass << line; 444 444 … … 467 467 void t_bncCore::printEph(const t_eph& eph, bool printFile) { 468 468 469 QString strV2 = eph.toString( t_rnxNavFile::defaultRnxNavVersion2);470 QString strV3 = eph.toString( t_rnxObsHeader::defaultRnxObsVersion3);469 QString strV2 = eph.toString(defaultRnxNavVersion2); 470 QString strV3 = eph.toString(defaultRnxObsVersion3); 471 471 472 472 if (_rinexVers == 2 && eph.type() == t_eph::GLONASS) { -
branches/BNC_2.12/src/rinex/reqcedit.cpp
r8167 r8286 64 64 int version = settings.value("reqcRnxVersion").toInt(); 65 65 if (version < 3) { 66 _rnxVersion = t_rnxObsHeader::defaultRnxObsVersion2;66 _rnxVersion = defaultRnxObsVersion2; 67 67 } 68 68 else { 69 _rnxVersion = t_rnxObsHeader::defaultRnxObsVersion3;69 _rnxVersion = defaultRnxObsVersion3; 70 70 } 71 71 _samplingRate = settings.value("reqcSampling").toInt(); … … 533 533 return; 534 534 } 535 535 536 536 // Concatenate all comments 537 537 // ------------------------ … … 552 552 } 553 553 comments.removeDuplicates(); 554 554 555 555 // Read Ephemerides 556 556 // ---------------- … … 578 578 579 579 if ( (haveGPS && haveGlonass) || _rnxVersion >= 3.0) { 580 outNavFile.setVersion( t_rnxNavFile::defaultRnxNavVersion3);580 outNavFile.setVersion(defaultRnxNavVersion3); 581 581 } 582 582 else { 583 outNavFile.setVersion( t_rnxNavFile::defaultRnxNavVersion2);583 outNavFile.setVersion(defaultRnxNavVersion2); 584 584 } 585 585 -
branches/BNC_2.12/src/rinex/rnxnavfile.h
r8280 r8286 35 35 class t_eph; 36 36 37 #define defaultRnxNavVersion2 2.11 38 #define defaultRnxNavVersion3 3.03 39 37 40 class t_rnxNavFile { 38 41 39 42 public: 40 43 enum e_inpOut {input, output}; 41 static constexpr double defaultRnxNavVersion2 = 2.11;42 static constexpr double defaultRnxNavVersion3 = 3.03;43 44 44 private: 45 45 class t_rnxNavHeader { -
branches/BNC_2.12/src/rinex/rnxobsfile.cpp
r8167 r8286 166 166 else if (key == "# / TYPES OF OBSERV") { 167 167 if (_version == 0.0) { 168 _version = t_rnxObsHeader::defaultRnxObsVersion2;168 _version = defaultRnxObsVersion2; 169 169 } 170 170 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); … … 190 190 else if (key == "SYS / # / OBS TYPES") { 191 191 if (_version == 0.0) { 192 _version = t_rnxObsHeader::defaultRnxObsVersion3;192 _version = defaultRnxObsVersion3; 193 193 } 194 194 QTextStream* in = new QTextStream(value.toAscii(), QIODevice::ReadOnly); … … 307 307 308 308 if (version <= 2) { 309 _version = t_rnxObsHeader::defaultRnxObsVersion2;309 _version = defaultRnxObsVersion2; 310 310 } 311 311 else { 312 _version = t_rnxObsHeader::defaultRnxObsVersion3;312 _version = defaultRnxObsVersion3; 313 313 } 314 314 … … 359 359 << "C6I" << "L6I" << "S6I" 360 360 << "C7I" << "L7I" << "S7I"; 361 361 362 362 _obsTypes['I'] << "C5A" << "L5A" << "S5A" 363 363 << "C9A" << "L9A" << "S9A"; … … 374 374 375 375 if (version <= 2) { 376 _version = t_rnxObsHeader::defaultRnxObsVersion2;376 _version = defaultRnxObsVersion2; 377 377 } 378 378 else { 379 _version = t_rnxObsHeader::defaultRnxObsVersion3;379 _version = defaultRnxObsVersion3; 380 380 } 381 381 _interval = header._interval; … … 447 447 << "C6I" << "L6I" << "S6I" 448 448 << "C7I" << "L7I" << "S7I"; 449 449 450 450 _obsTypes['I'] << "C5A" << "L5A" << "S5A" 451 451 << "C9A" << "L9A" << "S9A"; -
branches/BNC_2.12/src/rinex/rnxobsfile.h
r8280 r8286 38 38 #include "satObs.h" 39 39 40 #define defaultRnxObsVersion2 2.11 41 #define defaultRnxObsVersion3 3.03 42 40 43 class t_rnxObsHeader { 41 44 … … 43 46 44 47 public: 45 static constexpr double defaultRnxObsVersion2 = 2.11; 46 static constexpr double defaultRnxObsVersion3 = 3.03; 47 48 48 49 t_rnxObsHeader(); 49 50 ~t_rnxObsHeader();
Note:
See TracChangeset
for help on using the changeset viewer.