Changeset 6227 in ntrip


Ignore:
Timestamp:
Oct 11, 2014, 3:41:05 PM (8 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
2 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
  • trunk/BNC/src/bncrinex.h

    r6225 r6227  
    5353   void resolveFileName(const QDateTime& datTim);
    5454   bool readSkeleton();
    55    void writeHeader(const QByteArray& format, const QDateTime& datTimNom);
     55   void writeHeader(const QByteArray& format, const bncTime& firstObsTime);
    5656   void closeFile();
    5757   t_irc downloadSkeleton();
Note: See TracChangeset for help on using the changeset viewer.