Changeset 9775 in ntrip


Ignore:
Timestamp:
Jun 23, 2022, 2:58:53 PM (22 months ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r8901 r9775  
    988988  }
    989989  if (_log) {
    990     *_log << "Navigation File(s) : " << navFileName                                   << endl;
     990    *_log << "Navigation File(s) : " << navFileName  << endl;
    991991  }
    992992  QStringListIterator it(_navFileNames);
     
    995995    unsigned numOK  = 0;
    996996    unsigned numBad = 0;
     997    unsigned numUnhealthy = 0;
    997998    bncEphUser ephUser(false);
    998999    t_rnxNavFile rnxNavFile(fileName, t_rnxNavFile::input);
     
    10001001      t_eph* eph = rnxNavFile.ephs()[ii];
    10011002      ephUser.putNewEph(eph, false);
    1002       if (eph->checkState() == t_eph::bad) {
     1003      if      (eph->checkState() == t_eph::bad) {
    10031004        ++numBad;
     1005      }
     1006      else if (eph->checkState() == t_eph::unhealthy) {
     1007        ++numUnhealthy;
    10041008      }
    10051009      else {
     
    10081012    }
    10091013    if (_log) {
    1010       *_log << "Ephemeris          : " << numOK << " OK   " << numBad << " BAD" << endl;
    1011     }
    1012     if (numBad > 0) {
     1014      *_log << "Ephemeris          : " << numOK        << " OK   "
     1015                                       << numUnhealthy << " UNHEALTHY   "
     1016                                       << numBad       << " WRONG\n";
     1017    }
     1018    if (numBad > 0 || numUnhealthy > 0) {
    10131019      for (unsigned ii = 0; ii < rnxNavFile.ephs().size(); ii++) {
    10141020        t_eph* eph = rnxNavFile.ephs()[ii];
    1015         if (eph->checkState() == t_eph::bad) {
    1016           QFileInfo navFi(fileName);
    1017           if (_log) {
    1018             *_log << "  Bad Ephemeris   : " << navFi.fileName() << ' '
    1019                   << eph->toString(3.0).left(24) << endl;
     1021        QFileInfo navFi(fileName);
     1022        if (_log) {
     1023#ifdef BNC_DEBUG_BCEP
     1024          if (eph->checkState() == t_eph::unhealthy) {
     1025            *_log  << "                     "
     1026                << navFi.fileName() << ' ' << QString(": UNHEALTHY %2:%3\n")
     1027                           .arg(eph->navTypeString(eph->navType(), eph->prn(), 99.0))
     1028                           .arg(eph->rinexDateStr(eph->TOC(), eph->prn(), 99.0)).toLatin1();
     1029          }
     1030#endif
     1031          if (eph->checkState() == t_eph::bad) {
     1032            *_log  << "                     "
     1033                << navFi.fileName() << ' ' << QString(": WRONG %2:%3\n")
     1034                           .arg(eph->navTypeString(eph->navType(), eph->prn(), 99.0))
     1035                           .arg(eph->rinexDateStr(eph->TOC(), eph->prn(), 99.0)).toLatin1();
    10201036          }
    10211037        }
Note: See TracChangeset for help on using the changeset viewer.