Changeset 9765 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp
- Timestamp:
- Jun 20, 2022, 4:54:59 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/rinex/reqcedit.cpp
r9639 r9765 63 63 _outNavFileName = settings.value("reqcOutNavFile").toString(); 64 64 int version = settings.value("reqcRnxVersion").toInt(); 65 if (version < 3) {65 if (version == 2) { 66 66 _rnxVersion = defaultRnxObsVersion2; 67 67 } 68 else{68 if (version == 3) { 69 69 _rnxVersion = defaultRnxObsVersion3; 70 } 71 if (version == 4) { 72 _rnxVersion = defaultRnxObsVersion4; 70 73 } 71 74 _samplingRate = settings.value("reqcSampling").toString().split("sec").first().toDouble(); … … 601 604 outNavFile.setGlonass(haveGlonass); 602 605 603 if ( (haveGPS && haveGlonass) || _rnxVersion >= 3.0) { 606 if (_rnxVersion < 3.0) { 607 if (haveGPS && haveGlonass) { 608 outNavFile.setVersion(defaultRnxNavVersion3); 609 } 610 if (haveGPS && !haveGlonass) { 611 outNavFile.setVersion(defaultRnxNavVersion2); 612 } 613 } 614 615 if (_rnxVersion >= 3.0 && _rnxVersion < 4.0) { 604 616 outNavFile.setVersion(defaultRnxNavVersion3); 605 617 } 606 else { 607 outNavFile.setVersion(defaultRnxNavVersion2); 618 619 if (_rnxVersion >= 4.0) { 620 outNavFile.setVersion(defaultRnxNavVersion4); 608 621 } 609 622 … … 626 639 } 627 640 628 outNavFile.writeHeader(&txtMap); 641 int mergedNavFiles = _navFileNames.size(); 642 unsigned year, month, day; 643 int gps_utc = 0; 644 if (_ephs.size()) { 645 _ephs.at(0)->TOC().civil_date(year, month, day); 646 gps_utc = gnumleap(year, month, day); 647 } 648 outNavFile.writeHeader(&txtMap, mergedNavFiles, gps_utc); 629 649 630 650 // Loop over all ephemerides … … 645 665 } 646 666 if (eph->checkState() == t_eph::bad) { 667 continue; 668 } 669 if (outNavFile.version() >= 4.0 && 670 eph->navType() == t_eph::undefined) { // input files < version 4.0 647 671 continue; 648 672 }
Note:
See TracChangeset
for help on using the changeset viewer.