Changeset 10603 in ntrip for trunk/BNC/src/rinex


Ignore:
Timestamp:
Feb 4, 2025, 4:46:08 PM (8 days ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src/rinex
Files:
2 edited

Legend:

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

    r10587 r10603  
    724724
    725725    if (isNew) {
    726       if      (eph->system() == t_eph::GPS) {
     726      if      (eph->system() == t_eph::GPS &&
     727               eph->type()   == t_eph::LNAV) {
    727728        ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
    728729      }
    729       else if (eph->system() == t_eph::GLONASS) {
     730      else if (eph->system() == t_eph::GLONASS &&
     731               eph->type()   == t_eph::FDMA_M) {
    730732        ephs.append(new t_ephGlo(*dynamic_cast<t_ephGlo*>(eph)));
    731733      }
    732       else if (eph->system() == t_eph::Galileo) {
     734      else if (eph->system() == t_eph::Galileo &&
     735               eph->type()   ==  t_eph::INAV) {
    733736        ephs.append(new t_ephGal(*dynamic_cast<t_ephGal*>(eph)));
    734737      }
    735       else if (eph->system() == t_eph::QZSS) {
     738      else if (eph->system() == t_eph::QZSS &&
     739               eph->type()   == t_eph::LNAV) {
    736740        ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
    737741      }
    738       else if (eph->system() == t_eph::SBAS) {
     742      else if (eph->system() == t_eph::SBAS &&
     743               eph->type()   == t_eph::SBASL1) {
    739744        ephs.append(new t_ephSBAS(*dynamic_cast<t_ephSBAS*>(eph)));
    740745      }
    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)) {
    742749        ephs.append(new t_ephBDS(*dynamic_cast<t_ephBDS*>(eph)));
    743750      }
    744       else if (eph->system() == t_eph::IRNSS) {
     751      else if (eph->system() == t_eph::IRNSS &&
     752               eph->type()   == t_eph::LNAV) {
    745753        ephs.append(new t_ephGPS(*dynamic_cast<t_ephGPS*>(eph)));
    746754      }
  • trunk/BNC/src/rinex/rnxnavfile.cpp

    r10599 r10603  
    149149////////////////////////////////////////////////////////////////////////////
    150150void t_rnxNavFile::read(QTextStream* stream) {
     151  QString navType;
     152  QString prn;
    151153
    152154  while (stream->status() == QTextStream::Ok && !stream->atEnd()) {
    153 
     155    char sys;
    154156    QString line = stream->readLine();
    155157    if (line.isEmpty()) {
    156158      continue;
    157159    }
    158     QString navType;
     160
    159161    QStringList hlp = line.split(QRegExp("\\s+"), Qt::SkipEmptyParts);
    160     QString prn;
    161     char sys;
    162162    QString firstStr = hlp.at(0);
    163163
     
    210210      }
    211211      if (lines2skip) {
    212         for (int ii = 1; ii <= lines2skip; ii++) {
     212        for (int ii = 0; ii < lines2skip; ii++) {
    213213          stream->readLine();
    214214        }
     
    240240        lines << stream->readLine();
    241241      }
    242       eph = new t_ephGPS(version(), lines);
     242      eph = new t_ephGPS(version(), lines, navType);
    243243    }
    244244    else if (sys == 'R') {
     
    250250        lines << stream->readLine();
    251251      }
    252       eph = new t_ephGlo(version(), lines);
     252      eph = new t_ephGlo(version(), lines, navType);
    253253    }
    254254    else if (sys == 'E') {
     
    256256        lines << stream->readLine();
    257257      }
    258       eph = new t_ephGal(version(), lines);
     258      eph = new t_ephGal(version(), lines, navType);
    259259    }
    260260    else if (sys == 'J') {
     
    269269        lines << stream->readLine();
    270270      }
    271       eph = new t_ephGPS(version(), lines);
     271      eph = new t_ephGPS(version(), lines, navType);
    272272    }
    273273    else if (sys== 'S') {
     
    275275        lines << stream->readLine();
    276276      }
    277       eph = new t_ephSBAS(version(), lines);
     277      eph = new t_ephSBAS(version(), lines, navType);
    278278    }
    279279    else if (sys == 'C') {
     
    289289        lines << stream->readLine();
    290290      }
    291       eph = new t_ephBDS(version(), lines);
     291      eph = new t_ephBDS(version(), lines, navType);
    292292    }
    293293    else if (sys == 'I') {
     
    299299        lines << stream->readLine();
    300300      }
    301       eph = new t_ephGPS(version(), lines);
     301      eph = new t_ephGPS(version(), lines, navType);
    302302    }
    303303
Note: See TracChangeset for help on using the changeset viewer.