Changeset 6227 in ntrip for trunk/BNC/src/bncrinex.cpp


Ignore:
Timestamp:
Oct 11, 2014, 3:41:05 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6226 r6227  
    314314// Write RINEX Header
    315315////////////////////////////////////////////////////////////////////////////
    316 void bncRinex::writeHeader(const QByteArray& format,
    317                            const QDateTime& datTimNom) {
     316void bncRinex::writeHeader(const QByteArray& format, const bncTime& firstObsTime) {
    318317
    319318  bncSettings settings;
     
    321320  // Open the Output File
    322321  // --------------------
     322  QDateTime datTimNom  = dateAndTimeFromGPSweek(firstObsTime.gpsw(),
     323                                                floor(firstObsTime.gpssec()+0.5));
    323324  resolveFileName(datTimNom);
    324325
     
    366367  txtMap["COMMENT"] = _addComments.join("\\n");
    367368
     369  _header.setStartTime(firstObsTime);
    368370  _header.write(&outHlp, &txtMap);
    369371
     
    408410  // -------------
    409411  const t_satObs& fObs = obsList.first();
    410   QDateTime datTim     = dateAndTimeFromGPSweek(fObs._time.gpsw(), fObs._time.gpssec());
    411412  QDateTime datTimNom  = dateAndTimeFromGPSweek(fObs._time.gpsw(), floor(fObs._time.gpssec()+0.5));
    412413
     
    421422  // ------------------
    422423  if (!_headerWritten) {
    423     _header.setStartTime(fObs._time);
    424     writeHeader(format, datTimNom);
     424    writeHeader(format, fObs._time);
    425425  }
    426426
Note: See TracChangeset for help on using the changeset viewer.