Ignore:
Timestamp:
May 18, 2018, 9:56:20 AM (6 years ago)
Author:
stuerze
Message:

individual satellite system will be considerred now during concatenation of ephemeris files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/rinex/reqcedit.cpp

    r8286 r8351  
    561561  bool haveGPS     = false;
    562562  bool haveGlonass = false;
     563  QMap<t_eph::e_type, bool> haveGnss;
    563564  for (int ii = 0; ii < _ephs.size(); ii++) {
    564565    const t_eph* eph = _ephs[ii];
    565     if      (eph->type() == t_eph::GPS) {
    566       haveGPS = true;
    567     }
    568     else if (eph->type() == t_eph::GLONASS) {
    569       haveGlonass = true;
     566    switch (eph->type()) {
     567      case t_eph::GPS:
     568        haveGPS = true;
     569        haveGnss[t_eph::GLONASS] = true;
     570        break;
     571      case t_eph::GLONASS:
     572        haveGlonass = true;
     573        haveGnss[t_eph::GPS] = true;
     574        break;
     575      case t_eph::Galileo:
     576        haveGnss[t_eph::Galileo] = true;
     577        break;
     578      case t_eph::BDS:
     579        haveGnss[t_eph::BDS] = true;
     580        break;
     581      case t_eph::QZSS:
     582        haveGnss[t_eph::QZSS] = true;
     583        break;
     584      case t_eph::IRNSS:
     585        haveGnss[t_eph::IRNSS] = true;
     586        break;
     587      case t_eph::SBAS:
     588        haveGnss[t_eph::SBAS] = true;
     589        break;
     590      default:
     591        haveGnss[t_eph::unknown] = true;
    570592    }
    571593  }
     
    582604  else {
    583605    outNavFile.setVersion(defaultRnxNavVersion2);
     606  }
     607
     608  if (outNavFile.version() > 3.0) {
     609    if (haveGnss.size() > 1) {
     610      outNavFile.setGnssTypeV3(t_eph::unknown);
     611    }
     612    else if (haveGnss.size() == 1){
     613      outNavFile.setGnssTypeV3(haveGnss.keys().first());
     614    }
    584615  }
    585616
Note: See TracChangeset for help on using the changeset viewer.