Changeset 4010 in ntrip for trunk/BNC/rinex/reqcedit.cpp


Ignore:
Timestamp:
Apr 22, 2012, 12:29:32 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r4009 r4010  
    5656  _navFileNames   = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts);
    5757  _outNavFileName = settings.value("reqcOutNavFile").toString();
    58   _rnxVersion     = settings.value("reqcRnxVersion").toDouble();
     58  int version     = settings.value("reqcRnxVersion").toInt();
     59  if (version < 3) {
     60    _rnxVersion = 2.11;
     61  }
     62  else {
     63    _rnxVersion = 3.01;
     64  }
    5965  _samplingRate   = settings.value("reqcSampling").toInt();
    6066  _begTime        = bncTime(settings.value("reqcStartDateTime").toString().toAscii().data());
     
    255261  for (int ii = 0; ii < _ephs.size(); ii++) {
    256262    const t_eph* eph = _ephs[ii];
    257     outNavFile.writeEph(eph);
    258   }
    259 }
     263    if (eph->type() == t_eph::GPS || _rnxVersion >= 3.0) {
     264      outNavFile.writeEph(eph);
     265    }
     266  }
     267}
Note: See TracChangeset for help on using the changeset viewer.