Changeset 10587 in ntrip for trunk/BNC/src/rinex/reqcedit.cpp


Ignore:
Timestamp:
Dec 10, 2024, 3:57:21 PM (3 months ago)
Author:
stuerze
Message:

RINEX version 4.02 updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/reqcedit.cpp

    r10577 r10587  
    586586  bool haveGPS     = false;
    587587  bool haveGlonass = false;
    588   QMap<t_eph::e_type, bool> haveGnss;
     588  QMap<t_eph::e_system, bool> haveGnss;
    589589  for (int ii = 0; ii < _ephs.size(); ii++) {
    590590    const t_eph* eph = _ephs[ii];
    591     switch (eph->type()) {
     591    switch (eph->system()) {
    592592      case t_eph::GPS:
    593593        haveGPS = true;
     
    680680    bncTime begTime = _begTime;
    681681    bncTime endTime = _endTime;
    682     if (eph->type() == t_eph::BDS) {
     682    if (eph->system() == t_eph::BDS) {
    683683      begTime += 14;
    684684      endTime += 14;
     
    695695
    696696    if (outNavFile.version() < 3.0) {
    697           if (outNavFile.glonass() && eph->type() != t_eph::GLONASS) {
     697          if (outNavFile.glonass() && eph->system() != t_eph::GLONASS) {
    698698            continue;
    699699          }
    700           if (!outNavFile.glonass() && eph->type() != t_eph::GPS) {
     700          if (!outNavFile.glonass() && eph->system() != t_eph::GPS) {
    701701            continue;
    702702      }
    703703    }
    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.0
    716       continue;
    717     }
    718 
    719704    outNavFile.writeEph(eph);
    720705  }
     
    739724
    740725    if (isNew) {
    741       if      (eph->type() == t_eph::GPS) {
     726      if      (eph->system() == t_eph::GPS) {
    742727        ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
    743728      }
    744       else if (eph->type() == t_eph::GLONASS) {
     729      else if (eph->system() == t_eph::GLONASS) {
    745730        ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph)));
    746731      }
    747       else if (eph->type() == t_eph::Galileo) {
     732      else if (eph->system() == t_eph::Galileo) {
    748733        ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph)));
    749734      }
    750       else if (eph->type() == t_eph::QZSS) {
     735      else if (eph->system() == t_eph::QZSS) {
    751736        ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
    752737      }
    753       else if (eph->type() == t_eph::SBAS) {
     738      else if (eph->system() == t_eph::SBAS) {
    754739        ephs.append(new t_ephSBAS(*dynamic_cast<t_ephSBAS*>(eph)));
    755740      }
    756       else if (eph->type() == t_eph::BDS) {
     741      else if (eph->system() == t_eph::BDS) {
    757742        ephs.append(new t_ephBDS(*dynamic_cast<t_ephBDS*>(eph)));
    758743      }
    759       else if (eph->type() == t_eph::IRNSS) {
     744      else if (eph->system() == t_eph::IRNSS) {
    760745        ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
    761746      }
Note: See TracChangeset for help on using the changeset viewer.