Changeset 8659 in ntrip


Ignore:
Timestamp:
Apr 4, 2019, 10:08:16 AM (5 years ago)
Author:
stuerze
Message:

minor changes

Location:
trunk/BNC/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncephuser.cpp

    r8614 r8659  
    152152
    153153  const t_eph* ephOld = ephLast(prn);
     154
     155  if (ephOld &&
     156      (ephOld->checkState() == t_eph::bad ||
     157       ephOld->checkState() == t_eph::outdated)) {
     158    ephOld = 0;
     159  }
    154160
    155161  if ((ephOld == 0 || newEph->isNewerThan(ephOld)) &&
     
    220226      return;
    221227    }
    222     else if (eph->type() == t_eph::GLONASS && timeDiff > 1 * 3600) { // updated every 30 minutes
     228    else if (eph->type() == t_eph::GLONASS && timeDiff > 2 * 3600) { // updated every 30 minutes
    223229      eph->setCheckState(t_eph::outdated);
    224230      return;
     
    266272      return;
    267273    }
    268     else if (eph->type() == t_eph::GLONASS && dt > 1*3600) {
     274    else if (eph->type() == t_eph::GLONASS && dt > 2*3600) {
    269275      ephL->setCheckState(t_eph::outdated);
    270276      return;
  • trunk/BNC/src/bncrinex.cpp

    r8644 r8659  
    170170  }
    171171  if (!sklDir.isEmpty() && sklDir != "none") {
    172     QString mtp;
    173     if (_rnxV3) {
    174       mtp = _mountPoint.path().mid(1,9).toUpper() + ".skl";
    175     }
    176     else {
    177       mtp = _mountPoint.path().mid(1,4).toLower() + ".skl";
    178     }
    179     QUrl url(sklDir + "/" + mtp);
     172    QString staID;
     173    int stIdLength = _mountPoint.path().length()-2;
     174    staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl";
     175    QUrl url(sklDir  + staID);
    180176    if (url.port() == -1) {
    181177      if (sklDir.contains("https", Qt::CaseInsensitive)) {
     
    335331
    336332  int statIDlength = _statID.size() -1;
    337   QString ID;
    338   if (_rnxV3) {
    339     ID = _statID.left(9);
    340   }
    341   else {
    342     ID = _statID.left(4);
    343   }
     333  QString ID = _statID.left(statIDlength);
    344334  ID = ID.toUpper();
    345335
  • trunk/BNC/src/rinex/rnxobsfile.cpp

    r8642 r8659  
    9696    }
    9797    else if (key == "MARKER NAME") {
    98       if (_version < 3.0) {
    99         _markerName = line.mid(0,4).trimmed();
    100       }
    101       else {
    102         _markerName = line.mid(0,9).trimmed();
    103       }
     98      _markerName = value;
    10499    }
    105100    else if (key == "MARKER TYPE") {
     
    613608    *stream << itCmnt.next().trimmed().left(60).leftJustified(60) << "COMMENT\n";
    614609  }
    615 
     610  QString markerName = _markerName.left(9);
     611  if (_version < 3.0) {
     612    markerName = _markerName.left(4);
     613  }
    616614  *stream << QString("%1")
    617     .arg(_markerName, -60)
     615    .arg(markerName, -60)
    618616    .leftJustified(60)
    619617           << "MARKER NAME\n";
     618
    620619
    621620  if (!_markerNumber.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.